Why do you need the pop-up window? You could save it directly since you're using the Activeworkbook's full name:
Code:Dim fName As String fName = ActiveWorkbook.FullName & "_" & Format(today, "DD-MM-YYYY") & ".xlsm" ' FileSaveName = Application.GetSaveAsFilename(InitialFileName:=fName, filefilter:="Excel Files(*.xlsm),*.xlsm", Title:="Please save the file") ' If FileSaveName <> False Then ActiveWorkbook.SaveAs FileName:=fName, FileFormat:=52 ActiveWorkbook.SaveAs FileName:=fName, FileFormat:=52
Dim tDate As String
Dim FileSaveName As String
Dim fName As String
fName = ActiveWorkbook.FullName & "_" & Format(today, "DD-MM-YYYY")
FileSaveName = Application.GetSaveAsFilename(InitialFileName:=fName, filefilter:="Excel Files(*.xlsm),*.xlsm", Title:="Please save the file")
If len(FileSaveName) > 0 Then ActiveWorkbook.SaveAs FileName:=fName, FileFormat:=52
Application.Dialogs(xlDialogSaveAs).Show , xlOpenXMLWorkbookMacroEnabled
Try this
Code:Application.Dialogs(xlDialogSaveAs).Show , xlOpenXMLWorkbookMacroEnabled
Try:Code:Dim tDate As String Dim FileSaveName As String Dim fName As String fName = ActiveWorkbook.FullName & "_" & Format(today, "DD-MM-YYYY") FileSaveName = Application.GetSaveAsFilename(InitialFileName:=fName, filefilter:="Excel Files(*.xlsm),*.xlsm", Title:="Please save the file") If len(FileSaveName) > 0 Then ActiveWorkbook.SaveAs FileName:=fName, FileFormat:=52
Try this
Code:Application.Dialogs(xlDialogSaveAs).Show , xlOpenXMLWorkbookMacroEnabled