"andyh47" <andyh / synplicity.com> asked: > > require 'win32ole' > > ... > > curpos = selection.Information['wdHorizontalPositionRelativeToPage'] The above is not a correct translation of the VB code you are using: curpos = Selection.Information(wdHorizontalPositionRelativeToPage) wdHorizontalPositionRelativeToPage is a constant integer whose value is 5. (Try printing it or displaying it in a msgbox from Word/VBA. Furthermore, Information has a required argument, and you need to pass that as a Ruby argument rather than using the [] operator as you're doing here. Try this: WdHorizontalPositionRelativeToPage = 5 curpos = selection.Information(WdHorizontalPositionRelativeToPage) or this: module Word; end # you can use whatever name you like instead of Word WIN32OLE.const_load(w, Word) curpos = selection.Information(WdHorizontalPositionRelativeToPage) Cheers, Dave