ribbonx

How to add a custom Ribbon tab using VBA?

99封情书 提交于 2019-11-26 00:23:48
问题 I am looking for a way to add a custom tab in the Excel ribbon which would carry a few buttons. I chanced on some resources addressing it via Google but all look dodgy and outrageously complicated. What is a quick and simple way to do that ? I\'d like the new tab to get loaded when my VBA gets loaded into Excel.. UPDATE : I tried this example from here but get an \"object required\" error on the last instruction : Public Sub AddHighlightRibbon() Dim ribbonXml As String ribbonXml = \"<mso