L
lwm
Using this code
NewName = InputBox(prompt:="File Name and Directory", Default:=FName)
ActiveWorkbook.SaveAs Filename:=NewName, _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False, AddToMru:=True
When the user presses the cancel key the macro fails. What do I add to get
it to just end the sub.
Thanks
NewName = InputBox(prompt:="File Name and Directory", Default:=FName)
ActiveWorkbook.SaveAs Filename:=NewName, _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False, AddToMru:=True
When the user presses the cancel key the macro fails. What do I add to get
it to just end the sub.
Thanks