Not writing the Project Object right. What am I doing wrong?


S

StumpinSeattle

Both sets of codes call on respective class and modules. They work
individualy but not toghether in the same "Thisproject" object section. I am
trying to follow Rod Gill's VBA book. Can anybody call me on this one?


Private Sub Project_Open(ByVal pj As Project)
MsgBox ("Hello and Welcome to WMPE Project Management Information
System.")
EnableEvents
End Sub

Dim X As New TEvent
Private Sub Project_Open(ByVal pj As Project)
Set X.App = Application
End Sub
 
Ad

Advertisements

S

StumpinSeattle

No problem. To clarify, I do have both them both in separate class and
modules. How do I combine them in teh the "This Project" object?
 
Ad

Advertisements

R

Rod Gill

You can't combine them. The EnableEvents call in the open event procedure
calls the other code. Task events are a pain and how I've written it and how
it works in the sample file that comes with the VBA book is the only way it
can work. Project events are different.

--

Rod Gill
Project MVP

Project VBA Book, for details visit:
http://www.projectvbabook.com

NEW!! Web based VBA training course delivered by me. For details visit:
http://projectservertraining.com/learning/index.aspx
 

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