编辑.ppam文件以自定义加载项 [英] Edit a .ppam file for customizing an add-in

查看:499
本文介绍了编辑.ppam文件以自定义加载项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Powerpoint提供了一个.ppam文件加载项,为Excel提供了另一个.xslm文件加载项.加载项的工作很棒,但我想根据一些内部要求对其进行自定义.

I was provided an add-in for powerpoint as a .ppam file and another add-in for Excel as .xslm file. The add-in's work great, but I would like to customize them with some internal requirements.

我的问题是-如何打开.ppam文件(据我理解是编译后的版本)后面的源代码,以便能够执行自定义.

My questions is - how to open the source code behind a .ppam file ( which I understand is a compiled version) to be able to perform the customizations.

推荐答案

如果是PPAM文件,则是在PowerPoint中使用另存为加载项的PPTM文件创建的.

If it's a PPAM file, it was created in PowerPoint from a PPTM file saved as an add-in.

尽管您可以出于测试目的就地"编辑已加载的加载项,但不能进行编辑然后保存.但是您可以导出加载项的模块,然后将其导入新的PPTM文件,或在两者之间复制/粘贴代码.

While you can edit loaded add-ins "in place" for testing purposes, you can't edit then save them. But you can export the add-in's modules then import them into a new PPTM file or copy/paste code between the two.

为了访问已加载的加载项的模块/代码,您需要进行注册表更改.

In order to get access to the modules/code of the loaded add-in, you need to make a registry change.

重要提示:首先退出PowerPoint.

IMPORTANT: Quit PowerPoint first.

然后转到:

HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\PowerPoint\Options

(适用于PPT 2010;用16.0代替14.0替代PPT 2016/365和PPT 2019,替代15.0替代PPT 2013,替代12.0替代PPT 2007,等等……没有13.0)

(That'd be for PPT 2010; substitute 16.0 in place of 14.0 for PPT 2016/365 and PPT 2019, 15.0 for PPT 2013, 12.0 for PPT 2007 and so on ... there's no 13.0)

添加新的DWORD值:DebugAddins = 1

Add a new DWORD value: DebugAddins = 1

再次启动PPT;现在,您加载的加载项将出现在VBA IDE中.如果它们没有密码保护,则可以打开它们,进行编辑以进行测试,然后导出模块或复制/粘贴以在新的PPTM文件中使用.

Start PPT again; now your loaded add-ins will appear in the VBA IDE. If they're not password protected, you'll be able to open them, edit for test purposes, and export the modules or copy/paste for use in a new PPTM file.

确保导出经常更改的所有模块;如果您退出PPT或崩溃,那么自上次保存以来,您将丢失任何更改.

Be sure to export any modules you've changed fairly often; if you quit PPT or it crashes, you'll lose any changes since the last save.

这篇关于编辑.ppam文件以自定义加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆