Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Jun 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cursor , cursor where are you (Word XP/2003)

    Greetings all,

    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>

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    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.

    StuartR

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •