Hi,
I have this code
1. Run the Macro
2. Dialogue pops up to save:
3. I select 'Cancel'
4. and still it saves the Macro Enabled Template as 'False.xlsm'
How can I stop it from actually saving? I thought 'Cancel' would stop it.
Thanks in advance
I have this code
VBA Code:
Sub SaveQuoteAsWorkbook()
Range("H4").Copy
Range("H4").PasteSpecial xlPasteValuesAndNumberFormats
Dim tDate As String
Dim FileSaveName As String
Dim fName As String
fName = Range("H4") & "" & Format(today, "DD-MM-YYYY")
FileSaveName = Application.GetSaveAsFilename(InitialFileName:=fName, filefilter:="Excel Files(*.xlsm),*.xlsm", Title:="Please save the file")
ActiveWorkbook.SaveAs Filename:=FileSaveName, FileFormat:=52
End Sub
1. Run the Macro
2. Dialogue pops up to save:
3. I select 'Cancel'
4. and still it saves the Macro Enabled Template as 'False.xlsm'
How can I stop it from actually saving? I thought 'Cancel' would stop it.
Thanks in advance