我正在尝试在 Excel 2013 中创建一个带有 2 个按钮的新功能区。由于 Excel CustomUI 功能区布局和如何使用 VBA 添加自定义功能区选项卡,我能够使用自定义 UI 编辑器创建它。
当我输入代码为
<button id="aa" label="CORE" onAction = "HMA_CORE"/>
它有效,但一旦我尝试这段代码
<button id="aa" label="CORE" size = "large" onAction = "HMA_CORE"/>
然后在customUI中单击验证,它说“未声明大小属性”。我不确定要添加什么。我也看到了http://www.rondebruin.nl/win/s2/win009.htm,但代码看起来一样。任何帮助将不胜感激。谢谢
按钮的代码如下所示
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="toolRibbon" label="HMA-FUNCTIONS">
<group id="groupDocument" label="HMA-xml outputs">
<buttonGroup id="a">
<button id="aa" label="CORE" onAction = "HMA_CORE"/>
<button id="ab" label="PLANT" onAction = "HMA_PLANT"/>
</buttonGroup>
</group>
</tab>
</tabs>
</ribbon>
</customUI>