I’m struggling to create a functional global template (.dotm) for Word’s STARTUP folder. Followed guides meticulously, but macros fail or buttons don’t appear.
My Steps:
Code: Select all
Sub Apple(Optional control As IRibbonControl)
[code]
End Sub
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab id="Apple" label="Apple">
<group id="Apple" label="Apple">
<button id="Apple1" label="Apple" size="large" onAction="Apple" imageMso="HappyFace"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Code: Select all
C:\Users\[user]\AppData\Roaming\Microsoft\Word\STARTUP
Questions:
Are my Subs’ signatures correct for Ribbon callbacks?
Does the XML need strict namespace/attribute rules?
Any hidden steps for global templates?
Tried:
• Trust Center settings (enable macros/trust locations).
• ThisDocument module vs. standard modules.
• Renaming/rebooting.
Here's the .dotm i created, but it doesn't work. There is no button shown on the ribbon: Any guidance appreciated!