Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PowerPoint equiv to Auto_Open

Status
Not open for further replies.

mintjulep

Technical User
Aug 20, 2004
1,551
JP
How do you get a PowerPoint VBA procedure to run when the presentation is opened?

I've tried following the instructions in the help file about Using Events with the Application Object to no avail.
 
PowerPoint events only work if you first define a new class for application events, and then initiate the class.

This works fine, after you run the procedure that initiates the class.

It is useless for the PresentationOpen event however, because there is no way to run the initation procedure BEFORE PresentationOpen.

So, you just wind up moving the problem.
 
There is no way to directly run pp events. You can have a shape with mouse move trigger to start macro, this can be useful for single presentation.
For application level events, create pp add-in with AutoOpen() macro, that can create proper class when you open powerpoint with your add-in installed. The price is separation of event trapping code and presentation you need to trace.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top