J
JimK
Hi, I'd like to write a macro so that my 90+ page Word doc will scroll
automatically by itself (for presentation purposes). I'd like it to scroll
about one "line" per hundredth of a second (or so). I've tried the following
code, but that only scrolls for the 0.01 seconds and stops. I'd like it to
continue scrolling at this speed until I hit the macro Shortcut key again
(CTRL+Q). Is there a way to get this scroll speed to continue? And is there
a way to program the macro to recognize that a second entry of the same
Shortcut key will disable the macro? Thanks in advance.
PauseTime = 0.01 ' Set duration.
Start = Timer ' Set start time.
Do Until Timer > Start + PauseTime
'DoEvents ' Yield to other processes.
ActiveWindow.ActivePane.SmallScroll Down:=1
Loop
automatically by itself (for presentation purposes). I'd like it to scroll
about one "line" per hundredth of a second (or so). I've tried the following
code, but that only scrolls for the 0.01 seconds and stops. I'd like it to
continue scrolling at this speed until I hit the macro Shortcut key again
(CTRL+Q). Is there a way to get this scroll speed to continue? And is there
a way to program the macro to recognize that a second entry of the same
Shortcut key will disable the macro? Thanks in advance.
PauseTime = 0.01 ' Set duration.
Start = Timer ' Set start time.
Do Until Timer > Start + PauseTime
'DoEvents ' Yield to other processes.
ActiveWindow.ActivePane.SmallScroll Down:=1
Loop