A
anewton_lists
Hello,
I'm using Project 2003 and have stored four macros in my global.mpt. Ea
macro saves off some data into a .csv file. Ea macro runs successfully
when invoked by itself.
After creating the four macros, I then used the GUI (as I had done with
the earlier macros) to create another macro that would run the four
macros in succession. It appeared as if I was successful (nothing
squacked at me in the GUI) while recording this macro.
But, when I tried running the macro, nothing happened. Or, more to the
point, I clicked Run in the Macros dialog and the focus within the
macro list jumped to the top of the macros list and the app temporarily
became unresponsive. I had to click Cancel three or four times to
dismiss the dialog.
When I looked at the VBA, this is what I had:
Sub Pubs_All()
' Macro Pubs_All
' Macro Recorded Wed 2/15/06 by Me.
Macro
Macro
Macro
Macro
End Sub
Which certainly looked suspect. . .
Having done something similar in Excel that I know works, I went over
there and had a look at that macro's code:
Sub Pubs_All()
'
' Pubs_All Macro
' Macro recorded 2/15/2006 by Me
'
'
Application.Run "PERSONAL.XLS!Pubs_one"
Application.Run "PERSONAL.XLS!Pubs_two"
Application.Run "PERSONAL.XLS!Pubs_three"
Application.Run "PERSONAL.XLS!Pubs_four"
End Sub
So, I thought I'd be clever and copy that code into the Project VBA
editor, modifying it slightly like so:
Sub Pubs_Test()
'
' Pubs_Test Macro
' Macro copied from Excel 2/15/2006 by Me
'
'
Application.Run "GLOBAL.MPT!Pubs_one"
Application.Run "GLOBAL.MPT!Pubs_two"
Application.Run "GLOBAL.MPT!Pubs_three"
Application.Run "GLOBAL.MPT!Pubs_four"
End Sub
Clicking Run in the Macros dialog now closes the dialog (no weird
unresponsiveness), but no .csv files are getting produced.
Anyone have any ideas?
Thanks in advance.
I'm using Project 2003 and have stored four macros in my global.mpt. Ea
macro saves off some data into a .csv file. Ea macro runs successfully
when invoked by itself.
After creating the four macros, I then used the GUI (as I had done with
the earlier macros) to create another macro that would run the four
macros in succession. It appeared as if I was successful (nothing
squacked at me in the GUI) while recording this macro.
But, when I tried running the macro, nothing happened. Or, more to the
point, I clicked Run in the Macros dialog and the focus within the
macro list jumped to the top of the macros list and the app temporarily
became unresponsive. I had to click Cancel three or four times to
dismiss the dialog.
When I looked at the VBA, this is what I had:
Sub Pubs_All()
' Macro Pubs_All
' Macro Recorded Wed 2/15/06 by Me.
Macro
Macro
Macro
Macro
End Sub
Which certainly looked suspect. . .
Having done something similar in Excel that I know works, I went over
there and had a look at that macro's code:
Sub Pubs_All()
'
' Pubs_All Macro
' Macro recorded 2/15/2006 by Me
'
'
Application.Run "PERSONAL.XLS!Pubs_one"
Application.Run "PERSONAL.XLS!Pubs_two"
Application.Run "PERSONAL.XLS!Pubs_three"
Application.Run "PERSONAL.XLS!Pubs_four"
End Sub
So, I thought I'd be clever and copy that code into the Project VBA
editor, modifying it slightly like so:
Sub Pubs_Test()
'
' Pubs_Test Macro
' Macro copied from Excel 2/15/2006 by Me
'
'
Application.Run "GLOBAL.MPT!Pubs_one"
Application.Run "GLOBAL.MPT!Pubs_two"
Application.Run "GLOBAL.MPT!Pubs_three"
Application.Run "GLOBAL.MPT!Pubs_four"
End Sub
Clicking Run in the Macros dialog now closes the dialog (no weird
unresponsiveness), but no .csv files are getting produced.
Anyone have any ideas?
Thanks in advance.