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
 
Top