E
e18
Does anyone have the answer to how I can choose NO when asked if I wan'
to replace an existing file, and not get error?
Thanks,
Erlend
fTypes = "Text files (*.txt),*.txt,All files (*.*),*.*"
fName = "C:\bbar\" & nm & ".txt"
f = Application.GetSaveAsFilename(InitialFilename:=fName
Filefilter:=fTypes, FilterIndex:=1)
If f = False Then Exit Sub
ActiveWorkbook.SaveAs Filename:=f, FileFormat:= _
xlText, CreateBackup:=Fals
to replace an existing file, and not get error?
Thanks,
Erlend
fTypes = "Text files (*.txt),*.txt,All files (*.*),*.*"
fName = "C:\bbar\" & nm & ".txt"
f = Application.GetSaveAsFilename(InitialFilename:=fName
Filefilter:=fTypes, FilterIndex:=1)
If f = False Then Exit Sub
ActiveWorkbook.SaveAs Filename:=f, FileFormat:= _
xlText, CreateBackup:=Fals