无法将自定义 PowerPoint 加载项添加到功能区
Cannot add a custom PowerPoint Add-In to the ribbon
要创建 Excel 加载项 (*.xlam),我遵循以下步骤:
- 打开一个新的 Excel 文件 → 开发人员 → Visual Basic → 插入 → 模块
- 插入一个最基本的Hello World subroutine
- (Excel 文件) → 另存为 → Excel 加载项 (*.xlam)
- 加载项保存在
C:\Documents and Settings\<user>\Application Data\Microsoft\AddIns
- 打开一个新的 Excel 文件 → 文件 → 选项 → 加载项 → Excel 加载项 → 转到
- 单击复选框以启用我的 Hello 插件 → 确定
- (右键单击功能区)→自定义功能区
现在,当我 select 一个下拉框 Choose commands from
和 select Macros
选项时,我看到我的 Hello 子程序列在那里。我可以将它添加到功能区。
当我尝试模仿此过程来创建 PowerPoint 加载项 (*.ppam) 时,我遵循了所有 7 个步骤,但随后 select Macros
选项在 Choose commands from
下拉框中,我没有看到我的子程序列在那里。该列为空。因此我无法将我的加载项添加到功能区。
我做错了什么?为什么此过程适用于 Excel 但不适用于 PowerPoint?如何将我的 PowerPoint 加载项添加到功能区?
PowerPoint <> Excel.
如果您将 add-in 子例程声明为 Public,它 可能 起作用,但通常的方法是将 RibbonX 代码添加到您的 PPTM/saved 创建你想要的按钮等的 PPAM。
Adding a macro from PowerPoint add-in to ribbon
那里提到的 Leaf Creations 编辑已经不在了,但 Ron DeBruin 的网站是一个很好的建议金矿。
Ken Puls 等人有一本关于 RibbonX 编码的好书;它可能看起来已经过时,但大部分信息仍然很好:
要创建 Excel 加载项 (*.xlam),我遵循以下步骤:
- 打开一个新的 Excel 文件 → 开发人员 → Visual Basic → 插入 → 模块
- 插入一个最基本的Hello World subroutine
- (Excel 文件) → 另存为 → Excel 加载项 (*.xlam)
- 加载项保存在
C:\Documents and Settings\<user>\Application Data\Microsoft\AddIns
- 打开一个新的 Excel 文件 → 文件 → 选项 → 加载项 → Excel 加载项 → 转到
- 单击复选框以启用我的 Hello 插件 → 确定
- (右键单击功能区)→自定义功能区
现在,当我 select 一个下拉框 Choose commands from
和 select Macros
选项时,我看到我的 Hello 子程序列在那里。我可以将它添加到功能区。
当我尝试模仿此过程来创建 PowerPoint 加载项 (*.ppam) 时,我遵循了所有 7 个步骤,但随后 select
Macros
选项在 Choose commands from
下拉框中,我没有看到我的子程序列在那里。该列为空。因此我无法将我的加载项添加到功能区。
我做错了什么?为什么此过程适用于 Excel 但不适用于 PowerPoint?如何将我的 PowerPoint 加载项添加到功能区?
PowerPoint <> Excel.
如果您将 add-in 子例程声明为 Public,它 可能 起作用,但通常的方法是将 RibbonX 代码添加到您的 PPTM/saved 创建你想要的按钮等的 PPAM。
Adding a macro from PowerPoint add-in to ribbon
那里提到的 Leaf Creations 编辑已经不在了,但 Ron DeBruin 的网站是一个很好的建议金矿。
Ken Puls 等人有一本关于 RibbonX 编码的好书;它可能看起来已经过时,但大部分信息仍然很好: