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.
 
Top