Scrolling to the selection

R

Roy Barr

Hello,


How can I programmatically scroll to the selection?
Word doesn't allways do it automatically.

Regards,

Roy
 
T

Tony Jollans

You should be able to do it with:

ActiveWindow.ScrollintoView Selection.Range

(I assume it is the active window you want to scroll - if not, substitute a
reference for the window you do want to scroll)
 
R

Roy Barr

scrolltoview brings the selection to the bottom of the page, and sometimes
below the page.
I'd like to bring the selection to the top of the page.
The True parametr should have done this but it doesn't work on my Word XP
 
T

Tony Jollans

Roy Barr said:
scrolltoview brings the selection to the bottom of the page, and sometimes
below the page.
I'd like to bring the selection to the top of the page.
The True parametr should have done this but it doesn't work on my Word XP
 

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