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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I execute code upon opening a PowerPoint presentation?

Status
Not open for further replies.

hkfuwee

IS-IT--Management
Mar 28, 2002
1
US
I am trying to execute the following code when I start a PowerPoint presentation:

Private Sub App_PresentationOpen(ByVal Pres As Presentation)
With Application.Presentations.Open
ActiveWindow.Selection.SlideRange.Shapes("Object 10").Select
ActiveWindow.Selection.ShapeRange.OLEFormat.DoVerb Index:=1
End With
End Sub

According to the help file, this should work, however, it is not executing when I open the file or when the presentation is started. Ultimately, I would like to get this to work and save the file as a .pps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top