How to automatically trigger the App Object initialization in Powerpoint?

久未见 提交于 2019-12-23 16:38:55

问题


It is said here:

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

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.

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

Run the InitializeApp procedure.

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


回答1:


I usually do that in the Auto_Open macro.

See for example http://skp.mvps.org/autoevents.htm



来源:https://stackoverflow.com/questions/2979950/how-to-automatically-trigger-the-app-object-initialization-in-powerpoint

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!