HOW DO I COUNT TASKS IN MS PROJECT

B

BigZ

Is there a simple way to count tasks in my project? e.g. I am filtering on a
certain field; in addition to seeing the filtered tasks I would like to know
how many tasks were pulled out. Thank you very much.
 
J

Jack Dahlgren

Sub countactive()
SelectAll
MsgBox ActiveSelection.Tasks.Count
End Sub

Shows how many tasks are in your filtered results.
You can use activeproject.tasks.count to get the total count and then
subtract to find how many were filtered.
 
Top