J
Joe
Hi
I'm trying to create a ribbon in Excel when a workbook is open.
I got the "Custom UI Editor for Microsoft Office".
And make 2 tests, using an especific Workbook and a new (and saved)
workbook.
I paste the following code, obtained from Internet:
<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" >
<ribbon>
<tabs>
<tab id="myTab" label="My Tab">
<group id="group1" label="Group 1">
<button id="myButton" label="My Button"
imageMso="HappyFace" size="large"
onAction="myButton_ClickHandler" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
And I also paste the following code in a New Module in the workbook:
Sub myButton_ClickHandler(control As IRibbonControl)
MsgBox "MyButton was clicked!"
End Sub
After saving the file in the Custom UI Editor and opening the file in Excel:
nothing happens.
The Ribbon is not created.
The file is in a trusted folder.
Could anyon help me?
Thans in advance.
Joe
I'm trying to create a ribbon in Excel when a workbook is open.
I got the "Custom UI Editor for Microsoft Office".
And make 2 tests, using an especific Workbook and a new (and saved)
workbook.
I paste the following code, obtained from Internet:
<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" >
<ribbon>
<tabs>
<tab id="myTab" label="My Tab">
<group id="group1" label="Group 1">
<button id="myButton" label="My Button"
imageMso="HappyFace" size="large"
onAction="myButton_ClickHandler" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
And I also paste the following code in a New Module in the workbook:
Sub myButton_ClickHandler(control As IRibbonControl)
MsgBox "MyButton was clicked!"
End Sub
After saving the file in the Custom UI Editor and opening the file in Excel:
nothing happens.
The Ribbon is not created.
The file is in a trusted folder.
Could anyon help me?
Thans in advance.
Joe