J
Jack Dahlgren MVP
If Not Tsk Is Nothing Then ' test for blank rows
How about
if not Tsk.External then
Debug.Print Activeproject.Name
end if
Finding the name of the project if it is a sub-project requires opening that
project (using the path that you found in your code) and getting that
project's name
If you don't want to do that, then you can use some string functions to
strip out everything before the / and everything from the . onward
left(tsk.project,instr(tsk.project, ".")) or something like that will strip
out the .mpp. You would do the same with the / which separates the path from
the project name.
-Jack Dahlgren
Debug.Print Tsk.Project
End If
How about
if not Tsk.External then
Debug.Print Activeproject.Name
end if
Finding the name of the project if it is a sub-project requires opening that
project (using the path that you found in your code) and getting that
project's name
If you don't want to do that, then you can use some string functions to
strip out everything before the / and everything from the . onward
left(tsk.project,instr(tsk.project, ".")) or something like that will strip
out the .mpp. You would do the same with the / which separates the path from
the project name.
-Jack Dahlgren