如何在Powerpoint中自动触发App Object初始化? [英] How to automatically trigger the App Object initialization in Powerpoint?

查看:51
本文介绍了如何在Powerpoint中自动触发App Object初始化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里说:

http://msdn.microsoft.com/en-us/library/aa211599%28v=office.11​​%29.aspx

在程序运行之前,您必须连接声明的对象类模块(本例中为 App)与应用程序对象.你可以使用以下代码执行此操作任何模块.

Before the procedure will run, you must connect the declared object in the class module (App in this example) with the Application object. You can do this with the following code from any module.

将 X 调暗为新的 EventClassModule Sub初始化应用程序()Set X.App = Application End Sub

Dim X As New EventClassModule Sub InitializeApp() Set X.App = Application End Sub

运行 InitializeApp 程序.

Run the InitializeApp procedure.

如何运行?用手 ?我希望它在打开powerpoint时自动运行.有什么办法吗?

Run HOW ? By hand ? I want it to automatically run when opening the powerpoint rather. Is there any way ?

推荐答案

我通常在 Auto_Open 宏中这样做.

I usually do that in the Auto_Open macro.

参见例如http://skp.mvps.org/autoevents.htm

这篇关于如何在Powerpoint中自动触发App Object初始化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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