R
Red
Really appreciate any help with this problem. When I step through the code
(see below example) it runs as intended but when run via a macro for
instance is terminates before completion without error. Might it be the code
is running too fast? If so how do I go about slowing it down?
For Each p In application.Projects
On Error GoTo errSave
If Not p Is Nothing Then
If p.Name <> "Definite ResPool" Then
If p.Tasks.Count > 0 Then
p.Activate
application.ActiveWindow.Caption = "Saving Contribution
data to Excel"
SelectTaskColumn Column:="Name"
OutlineHideSubTasks
p.SaveAs APRoot & "All Definite", pjXLS, , , , , , , , ,
"Contribution"
End If
End If
End If
Next p
(see below example) it runs as intended but when run via a macro for
instance is terminates before completion without error. Might it be the code
is running too fast? If so how do I go about slowing it down?
For Each p In application.Projects
On Error GoTo errSave
If Not p Is Nothing Then
If p.Name <> "Definite ResPool" Then
If p.Tasks.Count > 0 Then
p.Activate
application.ActiveWindow.Caption = "Saving Contribution
data to Excel"
SelectTaskColumn Column:="Name"
OutlineHideSubTasks
p.SaveAs APRoot & "All Definite", pjXLS, , , , , , , , ,
"Contribution"
End If
End If
End If
Next p