Vba 如何在自定义UI编辑器自定义选项卡中添加Powerpoint内置工具
当我创建自定义选项卡时,它将帮助我在自定义UI的帮助下在单个选项卡中使用所有工具,因为我可以添加我编写的脚本,但不知道如何添加powerpoint的内置工具,例如字体颜色选择器,我想添加我应该做什么 下面是脚本Vba 如何在自定义UI编辑器自定义选项卡中添加Powerpoint内置工具,vba,powerpoint,Vba,Powerpoint,当我创建自定义选项卡时,它将帮助我在自定义UI的帮助下在单个选项卡中使用所有工具,因为我可以添加我编写的脚本,但不知道如何添加powerpoint的内置工具,例如字体颜色选择器,我想添加我应该做什么 下面是脚本 <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <ribbon startFromScratch="false"> <tabs>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="false">
<tabs>
<tab id="customTab" label="GEPper">
<group id="TextTools" label="Text Tools">
<button id="FontSize" label=" " image="a4" size="normal" onAction="FontSize" screentip="Font Size 10" supertip=" "/>
<button id="FontSize12" label=" " image="a3" size="normal" onAction="FontSize12" screentip="Font Size 12" supertip=" "/>
<button id="FontSize14" label=" " image="a2" size="normal" onAction="FontSize14" screentip="Font Size 14" supertip=" "/>
<button id="FontSize16" label=" " image="a1" size="normal" onAction="FontSize16" screentip="Font Size 16" supertip=" "/>
<button id="FontColorBlack" label=" " image="black" size="normal" onAction="FontColorBlack" screentip="Font Color Black" supertip=" "/>
<button id="FontColorWhite" label=" " image="white" size="normal" onAction="FontColorWhite" screentip="Font Color White" supertip=" "/>
<button id="Bullet" label=" " image="bullet" size="normal" onAction="Bullet" screentip="Bullet Color Black" supertip=" "/>
<button idMso="FontColorPicker"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
如果有人能在ribbon mod中帮助我,那将是非常有帮助的,内置图库的XML如下所示:
<gallery
idMso="FontColorPicker"
showImage="true"
showLabel="false"/>
要查找其他idMso标识符,您需要参考Microsoft发布的一组Excel电子表格。2016年的链接也适用于2019年的文件:
有一个用于PowerPoint的工作簿。搜索第一列。我想您可以在本网站的示例2中找到您的问题,但我不确定:您是否尝试过此子FontColorPicker应用程序。CommandBars.ExecuteMso FontColorPicker End Sub,但它不起作用您通常可以在“自定义功能区”对话框中找到控件的名称。找到要添加的控件,将鼠标悬停在该控件上,工具提示的最后一位,括号中的部分将为您提供需要添加到RibbonX的名称。