How to assign a keyboard shortcut to a macro in Word 2002

H

Harriet

I would like this macro to be available to all documents, but I don't want to
put it in Normal.dot.
The following is what I did (it didn’t work):
I created a blank template with File/New/General Templates, then clicked
“template†and saved it in Word’s Startup folder.
With this template as the active document, I recorded a macro by choosing
Tools/Macro/Record Macro. I recorded the actions I wanted to take and then
chose Tools/Macro/Stop recording. Part of the recording process allows you
to assign the macro to a keyboard shortcut. I saved the macro in the open
template. The macro was successful – ie I could go to Tools/Macro/Macros and
run the macro, but it did not get assigned to the shortcut key.
If I save the macro in Normal.dot the shortcut key assignment works.
 
G

Graham Mayor

With your add-in template open in Word, select tools > customize >
keyboard - save changes in (name of your template) - pick your macro and
assign a shortcut. While the add-in is loaded the shortcut will work.
http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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