Good Morning, Trying "in vain" to show the original file name in the "file name:" dialog box. Can anyone help?
================================
Sub RGH_SaveAs()
Dim FName
thisfilename = ActiveWorkbook.Name
thisfilenameinquotes = Chr(34) & thisfilename & Chr(34)
IniName = thisfilenameinquotes & Format(Now, "yyyy_mm_dd")
FName = Application.GetSaveAsFileName(InitialFileName:=IniName, FileFilter:="Excel Files (*.xlsx), *.xlsx", Title:="RGH Save As")
If FName = False Then Exit Sub
ActiveWorkbook.SaveAs FileName:=FName, FileFormat:=51
End Sub
===============
thanks in advance
Roland
================================
Sub RGH_SaveAs()
Dim FName
thisfilename = ActiveWorkbook.Name
thisfilenameinquotes = Chr(34) & thisfilename & Chr(34)
IniName = thisfilenameinquotes & Format(Now, "yyyy_mm_dd")
FName = Application.GetSaveAsFileName(InitialFileName:=IniName, FileFilter:="Excel Files (*.xlsx), *.xlsx", Title:="RGH Save As")
If FName = False Then Exit Sub
ActiveWorkbook.SaveAs FileName:=FName, FileFormat:=51
End Sub
===============
thanks in advance
Roland