Recording a macro in Word 2003

P

Peter Rooney

I've recorded a macro, and knowing that you can't use the mouse, I did all
the actions with keyboard commands like Alt- and Ctrl- . Fine, but when I
got to a certain dialogue I was stumped, temporarily. It was the Format
dialogue. When you are finished making your choices, you are supposed to
click OK. But how do you do that, without a mouse? Is there a keyboard
shortcut? What I actually did was to press Tab 13 times until I landed on
the OK button, and then pressed Enter. But is there a better way?
 
L

Lene Fredborg

It is correct that you cannot use the mouse to select or manipulate the text
while you record a macro. However, you can use the mouse to select from
menus, click in toolbars and make selections in dialog boxes. So you can also
click an OK button. If the OK button is the default button (the border of the
default button differs from other buttons), pressing the Return key will
correspond to clicking the OK button.

--
Regards
Lene Fredborg - Microsoft MVP (Word)
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
 
T

Terry Farrell

You can use TAB to move the selection around the dialog: these are not
recorded by the macro, but the action of pressing Enter when the OK button
is active will be recorded.

You can use the mouse to select the OK button too, but you must use the
enter key to execute the OK button.
 
L

Lene Fredborg

I get the same macro result regardless of whether I click the OK button using
the mouse or execute OK using the Enter (Return) key.

--
Regards
Lene Fredborg - Microsoft MVP (Word)
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
 

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