I am using Access to save an Excel file in a particular directory. The code was created about 10 years ago and hence saves the file with .xls extension and I would like to save with a .xlsm extension. If I just change the .xls to .xlsm, in the code below, the file is saved but the Compatibility Checker comes up (I would like to stop this) and when the file is reopened I get an error message stating there is a file extension problem and the file won't open. Any help would be appreciate, thanks Sandy.
Code:
strExt = ".xls"
'If .txtFriendlyName <> "" Then
' strDestFileName = .txtFriendlyName
'Else
' strDestFileName = Left(objFile.Name, Len(objFile.Name) - 4) & MakeFilePosfix(Now())
'End If
' Make file name with mask [JOB|QUOTE]_ITEM_NUMBER_DD_MM_YY
strDestFileName = Left(objFile.Name, Len(objFile.Name) - 4) & "_" & strExportTo & "_" & strItemNumber & "_" & MakeFilePosfix(Now())
strTempPath = strFullPath & strDestFileName & strExt