How to add a custom Ribbon tab using VBA?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 = " " ribbonXml = ribbonXml + " " ribbonXml = ribbonXml + " "