T
theintern
Does anyone know how to create multiple event handlers? I want to have the
same event fire on two different events, PresentationOpen (as seen below) and
SlideShowEnd. See code below.
Module 1:
Public cPPTObject As New EventClass
Sub Auto_Open()
'set an application reference to the event-enabled object
Set cPPTObject.PPTEvent = Application
End Sub
Module 2:
Sub CreateShow()
all the stuff i want it to do
End sub
Class module:
Public WithEvents PPTEvent As Application
Private Sub PPTEvent_PresentationOpen(ByVal Pres As Presentation)
CreateShow
End Sub
i tried some stuff, but all of it is just guess, so i figured it'd be faster
to just ask.
thanks
scott
same event fire on two different events, PresentationOpen (as seen below) and
SlideShowEnd. See code below.
Module 1:
Public cPPTObject As New EventClass
Sub Auto_Open()
'set an application reference to the event-enabled object
Set cPPTObject.PPTEvent = Application
End Sub
Module 2:
Sub CreateShow()
all the stuff i want it to do
End sub
Class module:
Public WithEvents PPTEvent As Application
Private Sub PPTEvent_PresentationOpen(ByVal Pres As Presentation)
CreateShow
End Sub
i tried some stuff, but all of it is just guess, so i figured it'd be faster
to just ask.
thanks
scott