Get vertical cursor/ibeam location value (inches) for Word documen

L

LostInMD

Hi All :)

I need to retrieve the horizontal ibeam/cursor location for a Word document.
This value is displayed at the bottom of the Word 2003 application
underneath the horizontal scroll bar --> in the same bar that displays the
"Page", "Sec", "Ln", and "Col". The horizontal value (in inches) is
displayed following the "At" variable. Any help would be greatly
appreciated! Thanks! Have a great day!
 
J

Jonathan West

LostInMD said:
Hi All :)

I need to retrieve the horizontal ibeam/cursor location for a Word
document.
This value is displayed at the bottom of the Word 2003 application
underneath the horizontal scroll bar --> in the same bar that displays the
"Page", "Sec", "Ln", and "Col". The horizontal value (in inches) is
displayed following the "At" variable. Any help would be greatly
appreciated! Thanks! Have a great day!

MsgBox Selection.Information(wdVerticalPositionRelativeToPage)
 
L

LostInMD

Hi Jonathan,

Thanks for the assistance. I tried -->
MsgBox Selection.Information(wdVerticalPositionRelativeToPage) -->
and got a value, however it was not in inches. For example, I place my
cursor/ibeam --> At 10.1" --> then run code and get a result of 727.5 --> I'm
assuming there is some sort of conversion that needs to be done to the result
to get an inches value, however, after attempting pixels, pica, etc... I've
not been able to determine what type of measurement the result is in order to
convert it to inches. Any assistance would be greatly appreciated! Thanks
again Jonathan :)
 
L

LostInMD

Hi again Jonathan,

Figured it out --> needed to do a Application.PointsToInches conversion on
the result of the line of code you suggested. Thanks again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top