H
Hollomey
Hi,
I wrote a MsProject-AddIn to do special things.
Now, I must execute some code whenever the active project is changed.
I wrote the following code and put it into the connect module, but it does
not work:
Public WithEvents App1 As Application
Private Sub App1_ProjectBeforeClose(ByVal pj As MSProject.Project, Cancel As
Boolean)
msgbox "Before Close Event"
End Sub
I get the following Compilation Error:
"Fehler beim Kompilieren: Das Objekt löst keine
Automatisierungsereignisse aus"
("Error when compiling: The object does not produce automation events")
Is there somebody who can help?
Thanks
Florian
I wrote a MsProject-AddIn to do special things.
Now, I must execute some code whenever the active project is changed.
I wrote the following code and put it into the connect module, but it does
not work:
Public WithEvents App1 As Application
Private Sub App1_ProjectBeforeClose(ByVal pj As MSProject.Project, Cancel As
Boolean)
msgbox "Before Close Event"
End Sub
I get the following Compilation Error:
"Fehler beim Kompilieren: Das Objekt löst keine
Automatisierungsereignisse aus"
("Error when compiling: The object does not produce automation events")
Is there somebody who can help?
Thanks
Florian