Questions tagged «ribbonx»

7
如何使用VBA添加自定义功能区选项卡?
我正在寻找一种在Excel功能区中添加自定义标签的方法,该标签将带有几个按钮。我碰巧有一些资源可以通过Google解决,但所有这些看起来都很晦涩难懂且异常复杂。 快速简便的方法是什么?我希望在VBA加载到Excel中时加载新标签。 更新:我从这里尝试了此示例,但是在最后一条指令上出现“需要对象”错误: Public Sub AddHighlightRibbon() Dim ribbonXml As String ribbonXml = "<mso:customUI xmlns:mso=""http://schemas.microsoft.com/office/2009/07/customui"">" ribbonXml = ribbonXml + " <mso:ribbon>" ribbonXml = ribbonXml + " <mso:qat/>" ribbonXml = ribbonXml + " <mso:tabs>" ribbonXml = ribbonXml + " <mso:tab id=""highlightTab"" label=""Highlight"" insertBeforeQ=""mso:TabFormat"">" ribbonXml = ribbonXml + " <mso:group id=""testGroup"" label=""Test"" autoScale=""true"">" …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.