How do I judge it is blank document in MS Project

R

Ronnie

I want to know whether current doment of project is blank or not
can anyone help me?


thanks,
Ronnie Ren
 
B

Brian K - Project MVP

Ronnie said:
I want to know whether current doment of project is blank or not
can anyone help me?


thanks,
Ronnie Ren

ActiveProject.Tasks.Count

ActiveProject.Resources.Count

If both are zero then there is no 'data' in the project file represented
by the ActiveProject object.
 

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