Thread: [Solved] Saving macro in Excel 2010
View Single Post
 
Old 03-10-2014, 09:43 AM
funkyfido funkyfido is offline Windows XP Office 2007
Novice
 
Join Date: Jun 2013
Posts: 24
funkyfido is on a distinguished road
Default Saving macro in Excel 2010

I have a macro which runs fine in Excel 2007. We have now upgraded to Excel 2010 but the macro won't save.

The code I am using is as follows:-
ActiveWorkbook.SaveAs Filename:="Y:\Reports\Test.xlsm", _
FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
ActiveWindow.Close

The error message which is returned is
"Errors were detecting while saving, may be able to save the file by removing or repairing some features" which it cannot do either.

Any idea how to get around this issue?
Thanks
Reply With Quote