I tried the macro posted - it works only if the cursor is off the visible
window. If the cursor is in the middle of the window, it will not scroll
current line to the top.
> Dear Jay Freeman,
> I had posted this question earlier. There were no replies. You may be able
[quoted text clipped - 23 lines]
> > Microsoft Word MVP FAQ: http://word.mvps.org
> > Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
Jay Freedman - 26 Sep 2007 02:07 GMT
If you can keep track of the number of lines added, you can use the
ActiveDocument.ActiveWindow.SmallScroll method to scroll the screen.
The trouble is that there's no usable way of finding out where the
Selection is with respect to the top of the window -- you can use the
Information method to get the vertical position relative to the top of
the page or the top margin, but not the visible window.
>I tried the macro posted - it works only if the cursor is off the visible
>window. If the cursor is in the middle of the window, it will not scroll
[quoted text clipped - 21 lines]
>> >
>> > ActiveWindow.ScrollIntoView Selection.Range, True
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.