cursor position out of view

Z

zSplash

My multi-page document sometimes scrolls the document in an unexpected way.
I don't know how to phrase it, but I'll be typing along (say on the 1st page
of a 4-page document), and the cursor gets outside of the viewable area of
the screen (i.e., the cursor position is past the viewable part of the
window). Then, in order to "see" the typing as I do it, I have to stop and
manually scroll up. Does my explanation make sense to anyone? How can I
prevent the cursor moving off the screen, which then requires me to manually
scroll down to "re-see" the cursor?

TIA
 
L

Larry

The text that the cursor is located in can be inadvertently scrolled
off-screen by the scroll wheel. Here's a macro I use to bring it
instantly back, to a spot several lines below the top of the screen,
while leaving it in the same place in the text. Install this macro,
assign it to a convenient keystroke, and you're in business.

Sub CursorToScreen()
' by Larry
' Bookmarks selection and then goes to bookmark. Brings selection from
anywhere,
' off screen or onscreen, to about five lines below top of window.

' Bookmark the selection.
Dim rngStoppedHere As Range
ActiveDocument.Bookmarks.Add Name:="NewPara", Range:=Selection.Range

' Go to bookmark
System.Cursor = wdCursorIBeam
Selection.GoTo What:=wdGoToBookmark, Name:="NewPara"

End Sub

Larry
 

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