Make offset visible

D

David Thielen

Hi;

For a given offset (Range.Start), how can I tell Word to make that
position visible?

thanks - dave
 
J

Jezebel

In a couple of posts you are using 'offset' in an apparentely odd sense.
Offset from what?Are you asking how to ensure that a given range is within
the display window? If so, make sure that you are in Print view, then check
the Information() property.
 
D

David Thielen

Yes, by offset I mean the vaule returned from Range.Start. But my
problem is not to see if an offset is visible, but how to make it
visible. Can that be done?

thanks - dave
 
J

Jezebel

I still don't understand what you mean by 'offset'. The value returned by
Range.start is the start of a range, as a character count from start of
document if you are within the MainStory. The information property will tell
(if you are in print view) whether or not the range is displayed; and if not
whether you need to scroll up or down to make it visible.

Or simpler, just Goto the range: that selects it, which necessarily makes it
visible.
 
J

Jonathan West

David Thielen said:
Hi;

For a given offset (Range.Start), how can I tell Word to make that
position visible?

Do you mean select it, or simply ensure that the range is visible on the
editing window.

For selecting the range, use the Select method of the range. For just making
itvisible, use the ScrollintoView method.
 

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