#1
|
|||
|
|||
Word VBA Script to Emulate Pressing Right Arrow Key
Hi I am developing education tools and need some help.
I want a Word VBA script to emulate someone pressing the right arrow key (so sort of scrolls down the document slowly) with the ability to change the amount of time this occurs. This is to assist students learning languages where we want to keep going down the document as a slow but consistent speed. Running on MS Office 2016. |
#2
|
||||
|
||||
Try something like this
ActiveDocument.ActiveWindow.ActivePane.AutoScroll Velocity:=20
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
How do I run that?
Sorry I am a beginner at these things. |
#4
|
|||
|
|||
Quote:
I found something that says it is "vbKeyRight" here Keycode constants | Microsoft Docs But I cannot figure out how to execute this. |
#5
|
||||
|
||||
The problem with what you are asking is how do you intend to stop the macro. If you kick it off, the only way to stop it is to interrupt the code or put in a trigger to stop the macro.
How do you envisage to start or stop the continuous stepping?
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Toggle between upper case, lower case, etc... by one single macro on a Mac, to emulate Shift + F3 on | gloub | Word VBA | 2 | 01-30-2019 12:40 PM |
MS Word Horizontal Line Disappears after pressing Enter from end of line | MikeWhite | Word | 5 | 01-20-2017 03:39 PM |
Might it be possible to emulate the worksheet-based structure of Excel files in MS Word? | Arabiflora | Word | 1 | 05-27-2016 11:50 PM |
Left arrow won't work on Word | LaBecs | Word | 2 | 09-26-2011 09:27 AM |
How to get rid of arrow symbol in MS 2007 word? | sjlee430 | Word | 0 | 09-18-2010 08:46 AM |