Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to save 2007 file in 97-2003 format
I'm trying to make a macro that will automatically save an Excel 2007 file
in the 97-2003 file format. So far I have this: ActiveWorkbook.SaveAs Filename:=ActiveWorkbook.FullName, _ FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False The Active Workbook.FullName wants to save the file with the .xlsm extension though the FileFormat=xlExcel8, so I'm confued. Help, please. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to save 2007 file in 97-2003 format
Look here
http://www.rondebruin.nl/saveas.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "John" wrote in message ... I'm trying to make a macro that will automatically save an Excel 2007 file in the 97-2003 file format. So far I have this: ActiveWorkbook.SaveAs Filename:=ActiveWorkbook.FullName, _ FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False The Active Workbook.FullName wants to save the file with the .xlsm extension though the FileFormat=xlExcel8, so I'm confued. Help, please. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to save 2007 file in 97-2003 format
If you were to run the following line of code just before the save you would
see that you have the .xlsm extension on the name you are using to save the file. You need to create a variable for the current name and then replace the ..xlsm with .xls. MsgBox ActiveWorkbook.FullName -- Regards, OssieMac "John" wrote: I'm trying to make a macro that will automatically save an Excel 2007 file in the 97-2003 file format. So far I have this: ActiveWorkbook.SaveAs Filename:=ActiveWorkbook.FullName, _ FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False The Active Workbook.FullName wants to save the file with the .xlsm extension though the FileFormat=xlExcel8, so I'm confued. Help, please. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
2007 Macro to Open File, Delete Contents, Save New File | Excel Discussion (Misc queries) | |||
How do I save a 2007 ex file so another party can open with 2003 | Excel Discussion (Misc queries) | |||
Setting all users to save Excel 2007 files in 2003 format | Excel Discussion (Misc queries) | |||
save excel file in tiff format in 2007 | Excel Discussion (Misc queries) | |||
Using Macro to Save xls to txt without changing file format | Excel Programming |