Macro keyboard shortcuts not working in new macro template document

New Contributor

I want to be able to create a new Word document that has my usual set of macros & keyboard shortcuts enabled. I'm having trouble doing that.  

I made a Normal.docm template. I called it MacroTemplate & made it so that it shows in the set of templates that appear when I click File > New.  

I create a new doc based on that template. The macros show in the document.  I can select them & run them.  The keyboard shortcuts show in Customize Keyboard, but do not work to run macros. 

I have a clunky work-around that I can do to get them to work, but don't want to have to do this step every time that I create a new document.  I always want every new document to be created with this set of macros enabled with working keyboard shortcuts!  

 

An example is my InsTodayDate macro with a keyboard shortcut of Alt+D.

  

A way that I can get them to work is to go into the Macros Organizer.  In my Normat.docm template, there is a set of macros called NewMacros.  This set already exists in my current document.  They don't show in this Organizer, but they are there when I list the macros in the document.  I can use the Organizer to copy the NewMacros to my current document. 

 

Result:  My keyboard shortcut now works.  Now, in the Organizer, my current document lists all of the macros twice. The macros were not listed in my current document in this dialog before.  Now they are listed twice.  I have 46 macros I'd like in the document.  Now it lists these twice - so there are now 92. One set of 46 is prefixed with Normal.NewMacros.[macroname]. The next set of 46 is prefixed with Project.NewMacros.[macroname] - which rather proves that the macros were already there to begin with.

Interestingly - the Customize Keyboard dialog does not show them twice. It lists only the macro names - a single set of 46.

 

How can I create a new document that is macro-enabled and includes my macros & their working keyboard shortcuts?  (just like Word 2003 did - which is what I am moving from) 

Thank you!!  

 

3 Replies

@susanc06 

 

For starters, I would suggest that you create a true template with the *.dotm extension. (A macro-enabled document, *.docm, is still just a document.)

 

Since you are using the name "Normal," are you trying to replace Word's predefined Normal.dotm template? That isn't a good idea. You can customize the Normal template or you can use some other template (with a different name) and load it as an add-in, by putting it in Word's Startup folder.

I already created such a template. The template that I am using is called Macrotemplate.dotm. It is in the folder C:\Users\[myname]\Documents\Custom Office Templates. It is visible when I click File > New. I don't recall but I imagine I selected that folder name, then told the software where to find it.

There is also a Normal.dotm in the folder: C:\Users\[myname]\AppData\Roaming\Microsoft\Templates. I, again, cannot recall whether I created this or whether the system did. So I don't recall whether I was intentionally changing Word's Normal.dotm or not. All my macros are in the Normal.dotm document. So I must have put them there!

When I create my macro document, I click File > New & select the template called MacroTemplate.dotm.

Should I put this MacroTemplate.dotm in the Word Startup folder? or do something else? Should I do something to change my Normal.dotm back to the default?

Thank you!
You will have to put your MacroTemplate.dotm in Word's Startup folder. That is the only way to ensure that the template is loaded into memory when Word starts. Macros and key assignments in that template will be active each time you start Word.

The Normal.dotm template is Word's default template. It is always present. If you delete it (NOT recommended) or rename it, it will be recreated.