Macros and shorcut keys

I have alot of macro's that I need to put in.  When I try to record a macro and go to assign the keyboard and go to put my shortcut key in it only allows me 2 letters.  I would like to have nfp, mcp, twozone (more than two letters) and I know it is the alt key and then the letters but it won't let me.  Also when I want to input the macro name like not functioning properly I get invalid procedure name.  I am finally moving from a word perfect dos (has worked wonderfully for 20+years but I only have on computer left that I can run it on).  Thanks!

You can't use more letters than one, but you can combine a letter with Ctrl, Shift or function keys if you wish.

Stefan Blom
MS 365 Word MVP since 2005
Volunteer Moderator
MS 365, Win 11 Pro
~~~
Note that I do not work for Microsoft
https://mvp.microsoft.com/
~~~
Please specify Word version & OS in your question

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

First, look at the following article even though it is dated:

Word for Word Perfect Users

Many WP users use macros to insert snippets of oft-used text. This is not a good use of this feature in Word. Instead, look at AutoText/Building Blocks and AutoCorrect.

Automated Boilerplate Using Microsoft Word

Finally, it is possible to assign sequential keyboard combinations to macros (or, for that matter AutoText) but they are usually more trouble than they are worth. Such keyboard shortcuts consist of a single key combination (like Ctrl+1) to be followed by another key. For instance you could have Ctrl+1 followed by m for your mfp and Ctrl+1 followed by n for your nfp. You may want to focus on recording/writing your macros without worrying about assigning shortcuts until later. You can assign keyboard shortcuts to existing macros and AutoText through the customization dialog.

Keyboard shortcuts should be stored in the same template that holds the macros (or AutoText entries) they are calling. This is the normal template by default but that template is seldom where you want to keep them.

Templates in Microsoft Word

Distributing macros to other users

Volunteering to "pay forward" the help I've received in the Microsoft user community.

Charles Kenyon
Sun Prairie, Wisconsin
wordfaq[at]addbalance[dot]com

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

One more point of difference: In Word, the names of macros cannot contain spaces or any punctuation other than an underscore. Typically, people who want multiple words in macro names replace the spaces with underscores, as in not_functioning_properly, or use a capital letter for the start of each word, as in NotFunctioningProperly.
_____________________________
https://jay-freedman.info

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 14, 2025 Views 117 Applies to: