I am using this code :
Private Sub CommandButton3_Click()
Dim FName As String
Dim FPath As String
FPath = "\\my-PC\myfolder"
FName = Sheets("Car").Range("C1").Text
ThisWorkbook.SaveAs Filename:=FPath & "\" & FName, FileFormat:=51
Application.Quit
End Sub
but as soon as I run the code. I get this dialogue poped up which is annoying:
" The following feature cannot be saved in ......
to continue to save as macro-free workbook click yes"
which my answer is yes but how do I get rid of this message because I am already saving the file in 51 (macro free) as you see my code above. so I don't understand why it is asking again. Anybody know how to get rid of this annoying pop-up?
Private Sub CommandButton3_Click()
Dim FName As String
Dim FPath As String
FPath = "\\my-PC\myfolder"
FName = Sheets("Car").Range("C1").Text
ThisWorkbook.SaveAs Filename:=FPath & "\" & FName, FileFormat:=51
Application.Quit
End Sub
but as soon as I run the code. I get this dialogue poped up which is annoying:
" The following feature cannot be saved in ......
to continue to save as macro-free workbook click yes"
which my answer is yes but how do I get rid of this message because I am already saving the file in 51 (macro free) as you see my code above. so I don't understand why it is asking again. Anybody know how to get rid of this annoying pop-up?