Code:
sFName = Application.GetSaveAsFilename(FileFilter:="Excel Files (*.xlsx), *.xlsx, Macro Enabled Workbook" & "(*.xlsm), *xlsm")
If sFName <> "False" Then
ws.SaveAs sFName, 56
End If
With sFName set as a string. I am using MS Office 2016 on win10 if that helps, have not tried this in Office 2010 yet, that will happen later. Laptop is on 2016, VM is on 2010 on win7.
The code works so far as populating a desired file name (that code not shown, just a few text strings placed under: InitialFileName:=Variable_here), but when I click save I am faced with compatibility errors, than after that the file while showing in the correct location is broke and corrupted to the point you must delete, zero access.
This is a major problem, is the GetSaveAsFilename code trying to save as some other file even though xlsx and xlsm are "options" shown?
This happens with both xlsx and xlsm files for this code.