#1
|
|||
|
|||
Can I write a macro in which I Use the Mouse?
Using Word 2007, I am trying to write a question bank that contains about 800 multiple-choice questions for my grandson, who is going to take the DMV driver license test.
Rather than having to repeatedly type a lot of the same cursor moves and other operations, such as indentations, spacing, etc., I want to make a macro to perform all of these keystrokes at once. This would save me a whole lot of time and trouble. Setting the macro up is easy, at first; however, when it comes to the point of actually recording the sequence of keystrokes to be performed by the macro, I am stuck because I don't know how to move the cursor with the mouse to the point where, for example, I can select a portion of text to indent. I can see that the macro is recording by the fact that the little 'cassette' icon is visible, but when I try to move the cursor around my Word document, nothing happens, so I can't tell the macro where to go, in order to perform a function. So my question is: Is it possible to move the cursor, in order to select a portion of the text by using the mouse? And, if not by using the mouse, then how is the insertion point selected? Any help would be greatly appreciated. |
#2
|
|||
|
|||
You can use the arrow keys and the shift key or Home and End keys to move your cursor.
That said, take a look at, instead, using styles. See Question and Answer Styles for an example. |
#3
|
|||
|
|||
Thanks for that helpful info, Charles! That worked.
Now how do you highlight the text, once you've place the cursor where you want it? |
#4
|
||||
|
||||
To select text with the keyboard, you hold the shift key as you move with the arrow keys.
Some special 'selections' combine the Ctrl and Shift keys together Ctrl-Shift-DownArrow to select to the end of the paragraph Ctrl-Shift-RightArrow to select to next word end Ctrl-Shift-HomeKey to select to top of document Ctrl-Shift-EndKey to select to end of document
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#5
|
|||
|
|||
Thanks, Andrew! That was just what I needed to know.
You guys are great! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to write a macro for bolding text between quotes | jwall | Word VBA | 3 | 12-09-2019 10:04 PM |
How to write macro | yoyo4 | Excel Programming | 1 | 11-19-2017 11:43 PM |
Write a macro to change formulas | Xyz_999 | Excel | 2 | 04-20-2016 10:40 PM |
Write a macro to change formulas | Xyz_999 | Excel | 1 | 04-20-2016 09:51 PM |
How do you write a macro with an IF Function | Scheuerman1987 | Excel | 5 | 06-05-2013 06:04 AM |