C
C2Ranches
Does anyone know why this code would work in Excel 2007 as long as it is
saved in 2003 format, but if it is saved in Excel 2007 format it will work
once but not twice or more:
Workbooks.Add
Temp.Copy Before:=ActiveWorkbook.Sheets(1)
Application.CutCopyMode = False
ActiveWorkbook.SaveAs Filename:="C:\HOLDINGS\stipdaily"
ActiveWorkbook.Close
Book.Close
Runs the first time fine, but if you try to run it again, it hangs at:
Temp.Copy Before:=ActiveWorkbook.Sheets(1)
If you save the Macro in 2003 format, it works every time you want to run it.
Thanks ahead of time for any clues you can pass along.
saved in 2003 format, but if it is saved in Excel 2007 format it will work
once but not twice or more:
Workbooks.Add
Temp.Copy Before:=ActiveWorkbook.Sheets(1)
Application.CutCopyMode = False
ActiveWorkbook.SaveAs Filename:="C:\HOLDINGS\stipdaily"
ActiveWorkbook.Close
Book.Close
Runs the first time fine, but if you try to run it again, it hangs at:
Temp.Copy Before:=ActiveWorkbook.Sheets(1)
If you save the Macro in 2003 format, it works every time you want to run it.
Thanks ahead of time for any clues you can pass along.