kal0123456789
New Member
- Joined
- Jan 4, 2022
- Messages
- 6
- Office Version
- 2010
- Platform
- Windows
Is there a way to get the name of the ribbon that we're using when we import the ribbon to workbook? Probably using onLoad function?
This is the sample code on the ribbon:
This is the vba code of onLoad:
This is the sample code on the ribbon:
XML:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="onLoad">
<ribbon>
<tabs>
<tab id="MyTab" label="Custom">
Bunch of stuff here
</tab>
</tabs>
</ribbon>
</customUI>
This is the vba code of onLoad:
VBA Code:
Public myRibbon As IRibbonUI
Sub onLoad(ribbon As IRibbonUI)
Set myRibbon = ribbon
<Get filename here>
End Sub