Skip to main content

Add a Macro Button in Word from a .dotm File in STARTUP

H
Written by Huzayfah Patel
Updated this week

1) Ensure the .dotm Template Loads

  1. In Word, go to File β†’ Options β†’ Add-ins.

  2. Under Manage, select Word Add-ins, then click Go.

  3. Confirm your .dotm appears as a Global Template and is ticked.

If the template is not visible, confirm the Word STARTUP folder path using the VBA Immediate Window:

  1. Press Alt + F11 to open the VBA editor.

  2. Press Ctrl + G to open the Immediate Window.

  3. Enter:
    ​? Application.StartupPath

  4. Press Enter to display the startup folder location.

  5. Confirm your .dotm is saved in that folder, then restart Word and re-check the Global Template list.


2) Add the Macro to the Ribbon

  1. Go to File β†’ Options β†’ Customize Ribbon.

  2. Under Choose commands from, select Macros.

  3. Select your macro, then:

    • Create/select a custom group on the right-hand side, and

    • Click Add.

  4. (Optional) Click Rename to update the button label and choose an icon.

Click OK to save changes.


3) Add the Macro to the Quick Access Toolbar (QAT)

  1. Go to File β†’ Options β†’ Quick Access Toolbar.

  2. Under Choose commands from, select Macros.

  3. Select your macro and click Add to place it on the toolbar.

  4. (Optional) Click Modify to change the icon and label.

  5. Click OK.


Result

Once added, your macro button will appear every time Word starts as long as the .dotm remains in the STARTUP folder and is loaded as a Global Template.

Did this answer your question?