本文介绍了功能区选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C:\Program Files \ Microsoft Office \ Office12 \ XXXSTART


我有两个文件:


1.  btnDelete.xlam


2.  myButton.xlam


当我打开Excel时,我得到两个同名的标签,而不是一个带两个按钮的标签。

<?xml version =" 1.0"编码= QUOT; UTF-8英寸?> 
< customUI xmlns =" http://schemas.microsoft.com/office/2006/01/customui" > <色带>
< tabs>
< tab id =" cpoTab" label ="删除标签">
< group id =" groupcpo" label =" Group CPO"
< button id =" btnDelete" label ="删除按钮"
imageMso ="删除"大小= QUOT;大"
onAction =" btnDelete_ClickHandler" />
< / group>
< / tab>
< / tabs>
< / ribbon>
< / customUI>


<?xml version =" 1.0"编码= QUOT; UTF-8英寸?> 
< customUI xmlns =" http://schemas.microsoft.com/office/2006/01/customui" > <色带>
< tabs>
< tab id =" cpoTab" label =" CPO Tab">
< group id =" groupcpo" label =" Group CPO"
< button id =" cpoButton" label =" CPO Button"
imageMso =" HappyFace"大小= QUOT;大"
onAction =" myButton_ClickHandler" />
< / group>
< / tab>
< / tabs>
< / ribbon>
< / customUI>
解决方案

In C:\Program Files\Microsoft Office\Office12\XLSTART

I have two files:

1.  btnDelete.xlam

2.  myButton.xlam

When I open Excel I get two tabs with the same name instead of one tab with two buttons.

<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" > <ribbon>
<tabs>
<tab id="cpoTab" label="Delete Tab">
<group id="groupcpo" label="Group CPO">
<button id="btnDelete" label="Delete Button"
imageMso="Delete" size="large"
onAction="btnDelete_ClickHandler" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" > <ribbon>
<tabs>
<tab id="cpoTab" label="CPO Tab">
<group id="groupcpo" label="Group CPO">
<button id="cpoButton" label="CPO Button"
imageMso="HappyFace" size="large"
onAction="myButton_ClickHandler" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
解决方案


这篇关于功能区选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 19:39