I have a heavy .XLXM file with macros created in Excel 2010. When saving the same file in 2007, it says it has an issue with number of rows and shows the compatibility box. (I checked the rows at this point and it shows 1 million rows compared to 65,000)
When I suppress that and save it, it corrupts the file and the file can never be opened.
The saving is done by macro via this code
ActiveWorkbook.SaveAs Filename:="\\Fileserver\Everyone\CDI " + bName + "\CP Batch Files\" & fName, FileFormat:= _
xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
What am I doing wrong here? I think above is the culprit (especially the fileformat)
Should I use (xlOpenXMLWorkbookMacroEna
This never happened to other files.
PS: There is a procedure in the file which saves one of the tab as Excel 2003 version (for uploading into a program) However, this procedure was never triggered. Here is the code that is used in that procedure.
ActiveWorkbook.SaveAs pName & fName & ".xls", FileFormat:=56
I am includnig this because this code is the only thing that connects anywhere to the row issues excel might have. Everything else is kept as it is.
Any help in right direction is appreciated!