W
wombat
When you save to a filename already in the directory, a
message box gives three options: save, no save or cancel
(buttons "yes", "no" and "cancel"). In the case "yes"
it overwrites the file, but in the cases "no"
and "cancel" the code fails. How do you trap the latter
two conditions so that alternative actions can be offered
to the user? Also, if you choose "cancel" from the
SaveAs dialog can you trap that condition? I may have
missed something but the VBA helpfile seems to offer no
clue.
message box gives three options: save, no save or cancel
(buttons "yes", "no" and "cancel"). In the case "yes"
it overwrites the file, but in the cases "no"
and "cancel" the code fails. How do you trap the latter
two conditions so that alternative actions can be offered
to the user? Also, if you choose "cancel" from the
SaveAs dialog can you trap that condition? I may have
missed something but the VBA helpfile seems to offer no
clue.