Try
ActiveSheet.SaveAs Sheets("home").range("E6")
Juan Pablo G.
This will save the file with a filename taken from a cell value without prompting the user unless a duplicate file name exists already. Don't know if this is exactly what you were looking for, but maybe it will help. This assumes that the user clicks "NO" when asked if you want to overwrite the file if it already exixts.
Application.ScreenUpdating = False
ActiveSheet.Select
ActiveSheet.Copy
ThisFile = Range("d8").Value
On Error GoTo do_not_overwrite
ActiveSheet.SaveAs Filename:="C:\YOUR DIR\" & ThisFile & ".xls"
do_not_overwrite:
MsgBox "MESSAGE TO USER HERE."
Application.DisplayAlerts = False
ActiveWorkbook.Close
Application.DisplayAlerts = True
thanks Juan, that works. Is it also possible for the user to have the Save As prompt box appear with Sheets("home").range("E6") in the file name box so the user can then decide which path (and change name if necessary)? i.e. as if they had gone File/Save As from the tool bar.
Thanks again.
Use instead
Application.Dialogs(xlDialogSaveAs).Show
Juan Pablo G. .
: Try