project_open event in COM Add-in

K

Kurt Verhaegen

I need some help getting the on_open/ project open event active in a COM
Add-in.
I've created a COM Add-in in VB6 with the template.

My Class module is called EventClassModule containing:
Public withevents app as MSproject.Application
Public withevents proj as MSproject.Project

Public Sub proj_open(ByVal pj as msproject.Project)
Msgbox (" in project open event !!")
End Sub

My Module is called AutoEventsHandling containing:
Dim X as New EventClassModule
Sub Initialize_App()
Set X.app = msproject.application
set X.proj = msproject.activeproject
End sub

The initialize_app is called from the IDTExtensibility2_OnConnection.

Application events are working but no project events, anybody a clue what
I'm doing wrong?

TX, Kurt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top