longtran295
New Member
- Joined
- Sep 13, 2021
- Messages
- 3
- Office Version
- 2016
- Platform
- Windows
Dear all,
I use CustomUIEditor to create a buttons tab to open sheets (replace for default sheets tab), but I need active macro content to use buttons.
VBA in Modules>Module 1:
Custom Ribbon:
So could I use custom ribbon buttons without macro enable?
Many thanks!
I use CustomUIEditor to create a buttons tab to open sheets (replace for default sheets tab), but I need active macro content to use buttons.
VBA in Modules>Module 1:
VBA Code:
Sub opensheetA(control As IRibbonControl)
Sheets("A").Activate
End Sub
Custom Ribbon:
XML:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab id="customTab" label="TestTab" insertBeforeMso="TabHome">
<group id="customGroup" label="TestGroup">
<button id="customButton" label="TestButton" siza="large" onAction="opensheetA" image="image1" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
So could I use custom ribbon buttons without macro enable?
Many thanks!