VBA Macro Association
- To link a macro to a component, specify its name in the appropriate tag of the component: onAction, isEnabled or onPressed.
For example: <onAction>MacroToExecuteOnClick</onAction>
- So that the extensions are loaded each time you open a Microsoft Excel workbook, save the file containing the macros, as an .xla file and add the file as an plug-in to Excel. If you do this, you must write each macro name in the RibbonXML.xml file as follows: myFile.xla!myMacro