Because it has a macro! That is why MS gave us the XLSM extension, so we
know the file has a macro and we can proceed accordingly.
Try doing a manual save (Office | Save) with a macro containing file. See
what happens when you try to save as XLSX
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email
"Barb Reinhardt" wrote in message
...
I'm trying to save a workbook as a .xlsm in Excel 2007 using code.
I find that this works
ThisWorkbook.SaveAs Filename:=filesavename, _
FileFormat:= _
xlOpenXMLWorkbookMacroEnabled
And this doesn't
ThisWorkbook.SaveAs Filename:=filesavename
The workbook can be saved, but it can never be opened again.
Why?
Barb Reinhardt