Hello,


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

Regards,

Roy

RE: Scrolling to the selection by TonyJollans

TonyJollans
Wed Sep 28 10:59:17 CDT 2005


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)

"Roy Barr" wrote:

> Hello,
>
>
> How can I programmatically scroll to the selection?
> Word doesn't allways do it automatically.
>
> Regards,
>
> Roy
>
>
>

Unfortunately' it doesn't work by Roy

Roy
Wed Sep 28 12:30:36 CDT 2005

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





"Tony Jollans" <TonyJollans@discussions.microsoft.com> schrieb im
Newsbeitrag news:12806C38-84C9-408A-88E0-013E4A7D522F@microsoft.com...
>
> 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)
>
> "Roy Barr" wrote:
>
> > Hello,
> >
> >
> > How can I programmatically scroll to the selection?
> > Word doesn't allways do it automatically.
> >
> > Regards,
> >
> > Roy
> >
> >
> >



RE: Unfortunately' it doesn't work by TonyJollans

TonyJollans
Wed Sep 28 14:03:03 CDT 2005



"Roy Barr" wrote:

> 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
>
>
>
>
>
> "Tony Jollans" <TonyJollans@discussions.microsoft.com> schrieb im
> Newsbeitrag news:12806C38-84C9-408A-88E0-013E4A7D522F@microsoft.com...
> >
> > 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)
> >
> > "Roy Barr" wrote:
> >
> > > Hello,
> > >
> > >
> > > How can I programmatically scroll to the selection?
> > > Word doesn't allways do it automatically.
> > >
> > > Regards,
> > >
> > > Roy
> > >
> > >
> > >
>
>
>