In order for workbooks to be submitted into a special processing program I am using, the file extension must be .xls. If the workbook has special formatting that is only native to the .xlsx format such as special formatting and such and I just rename the file from .xlsx to .xls, it doesn't seem to have any ill effects other than getting this error:
The file you are trying to open is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
This is the code I'm using to run the SaveAs:
ActiveWorkbook.SaveAs Filename:=thisWb.Path & "\" & MyNewName, _
FileFormat:=xlExcel12
The common case is that the workbook already has the .xlsx extension, and I change the extension at the time of this VBA SaveAs function. Then, when I open the workbook again, I get the error.
I would like the file to retain the .xlsx features while having the .xls extension and without the error. If there isn't a clean way of doing that, I wouldn't mind just suppressing the error somehow.