scrolling down in a document

J

Jim Burke in Novi

Is there a way to have the active document scroll down a given number of
lines through VBA code?
 
J

Jean-Guy Marcil

Jim Burke in Novi said:
Is there a way to have the active document scroll down a given number of
lines through VBA code?

To scroll down one line:
ActiveWindow.SmallScroll 1
or
ActiveWindow.SmallScroll Down:=1

To scroll up one line:
ActiveWindow.SmallScroll , 1
or
ActiveWindow.SmallScroll Up:=1
 

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