Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I recently upgraded to Office 2007. Before I ugraded to Office 2007 I was
using a macro that was created in 2003 but I'm not able to use it now. The macro fails and I get an Runtime error '1004' - Method 'SaveAs' of Object'_workbook failed. I changed the file extension within the macro to Excel 2007 (xlsm), but did not change this part of the code because I don't know what it should be. See attached code: ActiveWorkbook.SaveAs Filename:= _ FOLDER & "OrderStatusTemp.xls", FileFormat:= _ xlExcel9795, Password:="", WriteResPassword:="", ReadOnlyRecommended:= _ False, CreateBackup:=False Set fs = CreateObject("Scripting.FileSystemObject") fs.DeleteFile FOLDER & "OrderStatus.xls" ActiveWorkbook.SaveAs Filename:= _ FOLDER & "OrderStatus.xls", FileFormat:= _ xlExcel9795, Password:="", WriteResPassword:="", ReadOnlyRecommended:= _ False, CreateBackup:=False fs.DeleteFile FOLDER & "OrderStatusTemp.xls" Any help you can provide will be helpful. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
running a Macro in 2007 which was created in 2003 | Excel Discussion (Misc queries) | |||
columns not displaying in excel 2007, created in 2003 | Excel Discussion (Misc queries) | |||
copy 2007 created macro to run in 2003 | Excel Discussion (Misc queries) | |||
2007 Excel Add-in created in version 2003 but not valid add-in for | Setting up and Configuration of Excel | |||
2007 Excel Add-in created in version 2003 but not valid add-in for | Excel Discussion (Misc queries) |