For a friend, I’ve to fastly push macros in a new documents with new styles.
I moved the macro, it works fine. But, on the old document I’ve a ribbon named “Complements” which contains a shortcut to my macro. On the new document, no way to get those.
How to get this “Complements” ribbon’s displayed? It seems it’s a base ribbon from MS.
The easiest way to allow a user of the new document to execute the macro would be to create a control and add it to Word’s Quick Access Toolbar (QAT). Greg Maxey has a quick tutorial here (the information you want begins on step four of these instructions):
Add a Macro to the Quick Access Toolbar (QAT)
And there is some additional information on this process for both Word 2007 and Word 2010 that can be found here:
Adding Commands to the Quick Access Toolbar
Alternatively, and with greater effort, if the Complements tab you describe is a custom XML Ribbon tab, the entire Complements Ribbon tab can be moved into the new document. The .docm or .dotm file that contains the original macro is actually a renamed .zip file that contains within it a file named customUI.xml (Word 2007) or customUI14.xml (Word 2010). This contents of this file, which defines the layout, look, and functions of a document’s customized Ribbon, can be brought over to the new file, provided the effort is put into learning a bit about RibbonX (Ribbon XML). An excellent reference for this is:
RibbonX: Customizing the Office 2007 Ribbon
Hope this helps.