How to I know that the active project has changed?

H

Hollomey

Does somebody know how I can find out from an AddIn program that the active
project changed?

How do I get this event?

Thanks
Florian
 
R

Rod Gill

Hi,

No need for an event. Use:
ActiveProject.Name If you store the original name in a string, it's easy to
check when you need to.

--
Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
 
H

Hollomey

Rod Gill said:
Hi,

No need for an event. Use:
ActiveProject.Name If you store the original name in a string, it's easy to
check when you need to.

Unfortunately it's not so easy.

I have to read property values from the active project whenever the user
changes the project.

I display a form parallel to the msproject plan which shows values which are
correlated to the active project!

Florian
 
J

Jack D.

Hollomey said:
Does somebody know how I can find out from an AddIn program that the
active project changed?

How do I get this event?

Thanks
Florian

I do not know if there is an even which handles this, however you could set
some variable (foo) to activeproject.name when you start. Then check to to
see if activeproject.name = foo when you need to know if it changed.

--
Please try to keep replies in this group. I do check e-mail, but only
infrequently. For Macros and other things check http://masamiki.com/project

-Jack Dahlgren, Project MVP


+++++++++++++++++++
 

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