M
Michael Dobony
I have the following VBA in my macro-enabled workbook template:
Sub SaveAsCompanyName()
Dim MyPath As String
MyPath = ThisWorkbook.Path
ThisWorkbook.SaveAs Filename:=MyPath & "\" & Range("A1") & " LTL RFQ.xlsx",
_
FileFormat:=xlOpenXMLWorkbook
End Sub
This results in the following error message:
The following features cannot be saved in macro free workbooks.
VB Project
To save a file with these features, click no, and then choose a macro -
enabled file type in the file type list.
To continue saving as a macro free workbook, click yes.
I've searched the web, but can't find a way to automatically bypass this
error message. I do not want to send the final workbook out with macros in
it. Is there a way to code a bypass or auto "Yes" response to this to avoid
this?
Sub SaveAsCompanyName()
Dim MyPath As String
MyPath = ThisWorkbook.Path
ThisWorkbook.SaveAs Filename:=MyPath & "\" & Range("A1") & " LTL RFQ.xlsx",
_
FileFormat:=xlOpenXMLWorkbook
End Sub
This results in the following error message:
The following features cannot be saved in macro free workbooks.
VB Project
To save a file with these features, click no, and then choose a macro -
enabled file type in the file type list.
To continue saving as a macro free workbook, click yes.
I've searched the web, but can't find a way to automatically bypass this
error message. I do not want to send the final workbook out with macros in
it. Is there a way to code a bypass or auto "Yes" response to this to avoid
this?