简体   繁体   中英

Is there an equivalent Workbook_Open Event in Powerpoint VBA

Basically, I am trying to run some VBA code as soon as the powerpoint file is opened in windows. I don't want to run it when the presentation is started, but I guess that would be an alternative. I'm not too sure how to do that either.

In Excel I would use this:

Private Sub Workbook_Open()
    'Do something here
End Sub

Does anyone know the alternative for Powerpoint 2007 without using an add-in?

似乎有一个XML选项

You can also use the deprecated "Auto_Open" method , however its not recommended :

Public Sub Auto_Open()

End Sub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM