I am having a problem with setting up a button on a custom ribbon to invalidate certain controls. I get an error about the macro being disabled or not available, but it's there and the project is located in a Trusted Templates area, so no macros are disabled.
The code isn't complicated:
Public grxRibbonUI As IRibbonUI
Public Sub rxIRibbonUI\_onLoad(ribbon As IRibbonUI)
Set grxIRibbonUI = ribbon
End Sub
Sub Click\_Clean(control As IRibbonControl)
grxIRibbonUI.InvalidateControl "Elec\_Standard"
grxIRibbonUI.InvalidateControl "borrder\_title\_show"
grxIRibbonUI.InvalidateControl "Adjust\_Bates"
End Sub