rruckus
01-24-2014, 01:25 PM
Does anyone know how to solve this very odd issue? It looks like it may be a Word bug, but it's so fundamental that I can't imagine it would be! If you add any "keybinding" in Word through either VBA code or through the Word 2010 menus to any template then create a new document based on that template, the keybinding will work. Now if you open or "create new" of any regular Word document (not attached to that template) your key binding will no longer fire! Steps are:
Create a new word template (dotm)
Add a simple macro to that template (like "HelloWorld")
Add any keybinding to fire that Macro (you can do this via VBA code, make sure to set the Customization Context to the template, or through Word > Options > Customize Ribbon)
Save and close your template.
Now dbl-click your template to create a new document based on the template. Press your keybinding short-cut and it will work.
Now create a new blank Word document (based on Normal.dot) and switch back to your original document.
Keybindings will no longer work!
Does anyone have a solution for this!? I reproduced in Word 2010 and 2007.
Create a new word template (dotm)
Add a simple macro to that template (like "HelloWorld")
Add any keybinding to fire that Macro (you can do this via VBA code, make sure to set the Customization Context to the template, or through Word > Options > Customize Ribbon)
Save and close your template.
Now dbl-click your template to create a new document based on the template. Press your keybinding short-cut and it will work.
Now create a new blank Word document (based on Normal.dot) and switch back to your original document.
Keybindings will no longer work!
Does anyone have a solution for this!? I reproduced in Word 2010 and 2007.