Hi
you may try
fname = InputBox("Please Enter File Name", "File Name")
With Application.FileSearch
.lookin = "C:\Temp" 'change this
.Filename = fname
If .Execute then
fname = InputBox("FileName Exists Please Try
Again.", "File Exists")
Else
ActiveWorkbook.SaveAs Filename:=fname
End If
--
Regards
Frank Kabel
Frankfurt, Germany
One way:
fName = Application.InputBox( _
Prompt:="Please enter file name", _
Title:="File name", _
Type:=2)
Do Until Dir(fName) = ""
If fName = "False" Then Exit Sub 'user clicked Cancel
fName = Application.InputBox( _
Prompt:="FileName Exists Please Try Again.", _
Title:="File Exists", _
Type:=2)
Loop
ThisWorkbook.SaveAs Filename:=fName
----- JE McGimpsey ------