Microsoft Word keyboard shortcuts for macros aren't working

5,253

Solution 1

I found a solution. As stated before, my macros were defined in Normal.dotm. They were in a code module named Module1.

I created a new module named Module2 then cut & pasted all the macros into this new module. After that, hotkeys are working perfectly for the macros. I also deleted Module1.

This is clearly a rare and strange bug in Word 2007. It was probably caused (somehow) by taking my Normal.dotm from my old installation of Windows XP and copying it to the new Windows 7 and Word 2007.

Solution 2

I do not have Word 2007 to hand. On my version of Word, you:

  • Select Tools then Options then Security then Macro Security then Security Level.
  • Set Security level to Medium.
  • Click OK twice.

With Word 2007, the start point may be slightly different but the principle will be the same.

Good luck.

Share:
5,253

Related videos on Youtube

firat.temel
Author by

firat.temel

I've done a lot of programming in C/C++, C#, AutoHotkey scripting, etc. My current job is more management than coding, but I still look at code occasionally.

Updated on September 18, 2022

Comments

  • firat.temel
    firat.temel over 1 year

    At work, I have several Word 2007 macros in a Normal.dotm template. Under Windows XP, I had some of the macros assigned to keyboard shortcuts, e.g. Ctrl+Shift+9. Everything worked perfectly.

    Our IT department recently gave me a new laptop with Windows 7 64-bit. The security settings on this new machine are much more restricted.

    When I press my macro keyboard shortcuts, the macros don't execute. I am running as an Admin. I don't completely understand the security model under Windows 7. Despite being an Admin, there is apparently another admin level for running applications. I've tried setting the Privilege Level of WinWord.exe to "Run this program as an administrator" (on the Properties Compatibility tab), but no success.

    I can run the macros directly through the macro dialog or by creating a toolbar icon. My macro security level is "Disable all macros except digitally signed macros".

    In Excel, using macro shortcut keys works fine.

    Any thoughts on what the problem might be?

  • firat.temel
    firat.temel about 12 years
    In Word 2007 it the macro security settings are more detailed. As mentioned in my post, my settings are: "Disable all macros except digitally signed macros". The macros run (just not from a shortcut key). Thanks.