Here's the latest:
The Main workbook was (by legacy design) reaching out and opening a linked template book, copying/pasting as values its one sheet, and then saving it under a different name. Just yesterday that save action began throwing the aforementioned compatibility errors and another warning about formulas not calculating right if references are made to cells that don't exist or something like that.
It finally dawned on me to convert the templates into xlsx's -- not because there is any good reason to, and not because anything, anywhere in either documentation or a catalog of good common sense suggests it -- but because I reasoned that, since versions are the problem, maybe I should simply try to reduce the versions so I can get on with my life. And lo, it seems to cooperate -- so far.
However, not without another bizarre, counter-intuitive wrinkle devoid of anything I can consider sound logic. This is what I figured would make sense (the procedure existed -- all I did was change the extension to refer to the new xlsx {and add a futile call to DeleteStyles}):
ChDir "G:\blah\Template_v8"
Workbooks.Open Filename:= _
"G:\blah\Template_v8\ Template.xlsx"
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
Range("A1:K1").Select
ChDir "G:\yadda"
DeleteStyles
ActiveWorkbook.SaveAs Filename:= _
"G:\yadda\theFile.xlsx", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWindow.Close
But that throws the "Excel unable to open because of unrecognized file extension" error. THIS is what actually works (so far) -- note the minor (and bizarre) change in the destination extension from the example above -- from xlsx to xls:
ChDir "G:\blah\Template_v8"
Workbooks.Open Filename:= _
"G:\blah\Template_v8\ Template.xlsx"
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
Range("A1:K1").Select
ChDir "G:\yadda"
DeleteStyles
ActiveWorkbook.SaveAs Filename:= _
"G:\yadda\theFile.xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWindow.Close
So is there any way to flag my own post as helpful?