Results 1 to 2 of 2
2004-09-27, 04:37 #1
- Join Date
- Jun 2001
- Melbourne, Victoria, Australia
- Thanked 0 Times in 0 Posts
Cursor , cursor where are you (Word XP/2003)
I need to know exactly where on the page a selection/cursor is. I've tried the Selection.Information using both wdHorizontalPositionRelativeToPage &
wdHorizontalPositionRelativeToTextBoundary. Even tried setting zoom to 100% but to no avail. The measurements I get seem to be meaningless.
Could someone take mercy <img src=/S/sad.gif border=0 alt=sad width=15 height=15> on my last surviving grey brain cell and tell me how to use this wonderful information.
To put it into context, my users add change bars (by drawing a line) to the document when they change the text(they don't like Words builtin functions).
Now in order to draw these bars programmatically I need to know the start and end points of the line I'm going to draw, and the measurements I've got
from the Selection.Information... tell me that my ruler is lying to me. <img src=/S/bouncenburn.gif border=0 alt=bouncenburn width=31 height=31>
2004-09-27, 05:14 #2
- Join Date
- Nov 2001
- Thanked 7 Times in 7 Posts
Re: Cursor , cursor where are you (Word XP/2003)
Selection.Information usually works. Could your problem be a misunderstanding of the units involved? You often see Selection.Information used with the PointsToCentimeters function to convert the points that it returns to a more useful unit.