Hi,
From a Cumulative project with 200+ project im getting a runtime error with following vba code:
Sub Macro1()
' Makro Macro1
Dim i As Integer
Dim subproj As MSProject.Subproject
For Each subproj In ActiveProject.Subprojects
i = i + 1
MsgBox subproj.SourceProject.Name & " number " & i & " index " & subproj.Index
Next
End Sub
Im getting following error at projectindex 25
Runtime Error '91'
Object variable or with block variable not set
What am i doing wrong? this only for testing, the goal is to print the subprojects with unfinished tasks
Regards
Torben