如何使用customUI编辑器在Excel 2013中定义button的大小

我正尝试使用Excel 2013中的2个button创build一个新的function区。由于Excel CustomUIfunction区布局和如何使用VBA添加自定义function区选项卡,我可以使用自定义用户界面编辑器创build它。

当我input代码为

<button id="aa" label="CORE" onAction = "HMA_CORE"/> 

它的工作原理,但一旦我尝试这个代码

 <button id="aa" label="CORE" size = "large" onAction = "HMA_CORE"/> 

然后点击customUI中的validation它说“大小属性没有声明”。 我不知道要添加什么。 我也看到了http://www.rondebruin.nl/win/s2/win009.htm ,但代码看起来是一样的。 任何帮助将不胜感激。 谢谢

button的代码如下所示

 <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> 

尝试使用Office中的内置图标(摆脱buttonGroup

在这里输入图像说明

 <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon> <tabs> <tab id="toolRibbon" label="HMA-FUNCTIONS" insertBeforeMso="TabHome"> <group id="groupDocument" label="HMA-xml outputs"> <button id="aa" label="CORE" imageMso="MacroArguments" onAction = "HMA_CORE" size="large" /> <button id="ab" label="PLANT" imageMso="PictureBrightnessGallery" onAction = "HMA_PLANT" size="large" /> </group> </tab> </tabs> </ribbon> </customUI> 

参考: Office 2007图标库