Scrolling screen

R

Robert

I have a long form with multiple formfield textboxes. As
the user tabs through the textboxes, Word automatically
scrolls to keep the selected textbox on screen at the
lower edge. Is there a way to keep the selected textbox
in the middle of the screen? In the same vein, I have a
macro that causes the cursor to jump to another textbox
and when that happens, Word doesn't scroll there--the
textbox is off the screen. Is there a way to control which
part of the document is on screen? Thanks.
 
J

Jonathan West

Robert said:
I have a long form with multiple formfield textboxes. As
the user tabs through the textboxes, Word automatically
scrolls to keep the selected textbox on screen at the
lower edge. Is there a way to keep the selected textbox
in the middle of the screen?

You can experiment with a macro that is fired on entry to the form field.
Try something like this

ActiveWindow.SmallScroll Down:=3

This will scroll down 3 lines.

In the same vein, I have a
macro that causes the cursor to jump to another textbox
and when that happens, Word doesn't scroll there--the
textbox is off the screen. Is there a way to control which
part of the document is on screen? Thanks.

If you are using Word 2000 or later, this should work

ActiveWindow.ScrollIntoView Selection.Range
 

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