A
Alan
Using VBA in Excel 2007, I open up an existing file that is in
Excel 2003 format (FileFormat = 56) and try to save it under another
name but with the same format as the original. However, I get the
followig error:
Runtime error '1004':
Method 'SaveAs' of object '_Workbook' failed
I am using the following code to do this:
ActiveWorkbook.SaveAs Filename = Location, FileFormat =
ActiveWorkbook.FileFormat
so it will work with whatever the original file format is.
Am I doing something wrong?
Thanks, Alan
Excel 2003 format (FileFormat = 56) and try to save it under another
name but with the same format as the original. However, I get the
followig error:
Runtime error '1004':
Method 'SaveAs' of object '_Workbook' failed
I am using the following code to do this:
ActiveWorkbook.SaveAs Filename = Location, FileFormat =
ActiveWorkbook.FileFormat
so it will work with whatever the original file format is.
Am I doing something wrong?
Thanks, Alan