Hi,
I've had the pleasure of maintaining a custom add-in toolbar for Excel. I'm quite familiar with VBA and Excel in general, but in this case I'm close to being lost.
In the VBA code of the add-in I can see all code (subs) associated with the toolbar/ribbon controls, but I cannot see the code of the ribbon. To clearify, the code that I can see is of the type
end
My actual question is: How can I add new controls to the toolbar or rearrange existing controls? I guess there could be some hidden code loading the ribbon on open?
I hope you can help me
I've had the pleasure of maintaining a custom add-in toolbar for Excel. I'm quite familiar with VBA and Excel in general, but in this case I'm close to being lost.
In the VBA code of the add-in I can see all code (subs) associated with the toolbar/ribbon controls, but I cannot see the code of the ribbon. To clearify, the code that I can see is of the type
Code:
Dim m_Ribbon As IRibbonUI
Sub ribb******ed(ribbon As IRibbonUI)
'Callback for Office.IRibbonExtensibility.customUI.******
'MsgBox "The Ribbon is being loaded!"
Set m_Ribbon = ribbon
End Sub
Sub myButton_ClickHandler(control As IRibbonControl)
MsgBox "MyButton was clicked!"
End Sub
'Callback for Btn_Style40 onAction
Sub Style40_Btn(control As IRibbonControl)
Call Style40
End Sub
'Callback for Btn_Style2 onAction
Sub Style2_Btn(control As IRibbonControl)
Call Style2
End Sub
My actual question is: How can I add new controls to the toolbar or rearrange existing controls? I guess there could be some hidden code loading the ribbon on open?
I hope you can help me