5

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?

robbie
  • 658
  • 3
  • 11
  • 26

2 Answers2

4

It appears that there is a XML option

Buh Buh
  • 7,443
  • 1
  • 34
  • 61
brettdj
  • 54,857
  • 16
  • 114
  • 177
  • 1
    Because I fixed it :) Apparently one of the slashes was lost. And good edit Buh Buh, but I had to add that text to reach the minimum amount of changed characters. – Timo Oct 14 '13 at 06:56
0

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

Public Sub Auto_Open()

End Sub
David Rogers
  • 2,601
  • 4
  • 39
  • 84
  • Your links point to Excel-specific information. PowerPoint <> Excel. Apart from that, the Auto_Open in PowerPoint only fires when an Add-in loads, never when a presentation opens. – Steve Rindsberg Jun 28 '20 at 19:05