You are here: customUI - onLoad
customUI - onLoad
Callback onLoad will be run when loading ribbons. It caches the ribbon.
Sample Ribbon XML file:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="CallbackOnLoad"> </customUI>
Function to be copied to a standard module:
Option Compare Database Option Explicit Public gobjRibbon As IRibbonUI Sub CallbackOnLoad(ribbon As IRibbonUI) ' Callback onLoad. Set gobjRibbon = ribbon End Sub