首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用xml代码自定义excel带状图

使用xml代码自定义excel带状图
EN

Stack Overflow用户
提问于 2018-06-08 14:59:22
回答 1查看 171关注 0票数 2

嗨,我正在尝试使用xml代码自定义功能区,但新选项卡不显示在选项卡上。这是customUI.xml的代码:

代码语言:javascript
复制
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="customTab" label="Makra">
 <group id="customGroup" label="AAA">
 <button id="customButton1" 
 label="SOME LABEL" 
 imageMso="TableSharePointListsModifyColumnsAndSettings" 
 size="large" 
 onAction="BTNA" />
 </group>
 <group id="customGroup1" label="SOME LABEL 2">
 <button id="customButton2" 
 label="AAA" 
 imageMso="CacheListData" 
 size="large" 
 onAction="BTNB" />
 <button id="customButton3" 
 label="SOME LABEL" 
 imageMso="DatabaseMoveToSharePoint" 
 size="large" 
 onAction="BTNC" />
 </group>
</tab>
</tabs>
</ribbon>
</customUI>

.rels文件看起来像这样:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/><Relationship Id="someID" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml" /></Relationships>

当我通过添加customUI文件夹来修改文件并在-rels文件中进行更改时,选项卡不显示...有人能帮我这个忙吗?是否还有其他必须修改的文件?使用CustomUI编辑器,它工作得很好,但我不想使用这个工具。你认为使用它安全吗?

提前感谢!

EN

回答 1

Stack Overflow用户

发布于 2021-08-21 16:40:27

如果您需要将自定义设置绑定到文件而不是程序(即:仅对该文件可用,而不是每次打开程序时),则有一种更容易的方法来实现您所需的内容。

希望这就是你要找的。

https://docs.microsoft.com/en-us/office/vba/library-reference/concepts/customize-the-office-fluent-ribbon-by-using-an-open-xml-formats-file

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50755068

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档