braddenn
11-25-2008, 01:42 PM
I’m adding an App_PresentationClose event handler to a 2007 PowerPoint set of slide modules. I have followed the Microsoft “How to: Use Events with the Application Object “ notes and have set up an object variable of type Application in an Event Class Module. Also, in Module1 I have an InitializeApp() function that I successfully call from another slide module. But the event does not trigger the Private Sub App_PresentationClose(ByVal pres As Presentation) that I wrote. I suspect, based on some VB6 experience, that I have not associated the App_PresentationClose Sub with the event.
The Microsoft MSDN note says,
“After the new object is declared with events, it appears in the Object list in the class module, and you can write event procedures for the new object. (When you select the new object in the Object list, the valid events for that object are listed in the Procedure list.) Select an event from the Procedure list; an empty procedure is added to the class module.”
I can’t find an Object list or Procedure list. I am using the “Developer” tab in PowerPoint to get to the Microsoft Visual Basic development window which is a rather limited IDE. It has an Object Browser which shows classes and class members – but it does not have an Object list or Procedure list. I expect to see a list of procedures that are associated with the “WithEvents” part of type Application. Then I could find the “App_PresentationClose” procedure, double-click on that and have an empty event-linked procedure inserted into my code space. Then I fill in the details. But I cannot find that procedure anywhere.
How do I get to the list of procedures that are event-linked on the PowerPoint VBA IDE?
The Microsoft MSDN note says,
“After the new object is declared with events, it appears in the Object list in the class module, and you can write event procedures for the new object. (When you select the new object in the Object list, the valid events for that object are listed in the Procedure list.) Select an event from the Procedure list; an empty procedure is added to the class module.”
I can’t find an Object list or Procedure list. I am using the “Developer” tab in PowerPoint to get to the Microsoft Visual Basic development window which is a rather limited IDE. It has an Object Browser which shows classes and class members – but it does not have an Object list or Procedure list. I expect to see a list of procedures that are associated with the “WithEvents” part of type Application. Then I could find the “App_PresentationClose” procedure, double-click on that and have an empty event-linked procedure inserted into my code space. Then I fill in the details. But I cannot find that procedure anywhere.
How do I get to the list of procedures that are event-linked on the PowerPoint VBA IDE?