R
Red
Can anyone suggest why when I step through the below code is works fine but
when run from the macro in project it appears to stop before the MsgBox.
Thanks
For Each p In application.Projects
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
MsgBox "The Data transfer to Excel is complete. To view contribution by
project" & _
Chr(13) & "select Reporting \ Job Performance \ Contribution Report in
Access", _
vbInformation, "Contribution Data Export"
--
Regards,
Gina
HTA Architects
Tel: 020 74828054
Email: (e-mail address removed)
when run from the macro in project it appears to stop before the MsgBox.
Thanks
For Each p In application.Projects
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
MsgBox "The Data transfer to Excel is complete. To view contribution by
project" & _
Chr(13) & "select Reporting \ Job Performance \ Contribution Report in
Access", _
vbInformation, "Contribution Data Export"
--
Regards,
Gina
HTA Architects
Tel: 020 74828054
Email: (e-mail address removed)