gpt4 book ai didi

vba - Powerpoint中如何自动触发App Object初始化?

转载 作者:行者123 更新时间:2023-12-02 00:39:50 25 4
gpt4 key购买 nike

这里说的是:

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.

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

最佳答案

我通常在 Auto_Open 宏中这样做。

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

关于vba - Powerpoint中如何自动触发App Object初始化?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2979950/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com