H
HONYAKUKA
Word2000
WinXP
I recently had a minor disaster in which I must have sent an important file to
the Recycle Bin with some other stuff and then emptied the Bin, forever losing
the file. (I downloaded a sample recovery program, but it showed all sorts of
ancient files, but not the one I had just trashed.)
Anyway, does anyone have a few good lines of code to save a backup copy of a
Word file in a separate folder, as part of the closing or Quit routine?
I know the basic code for Saving As, etc. What I'm wondering is, Is there a
way to put such code in an AutoClose or Close Event module in a way that will
save the backup and save the file itself correctly and smoothly?
Here's the scenario: You have a Save As routine in your AutoClose module for
the backup version. You make some changes in the file you're about to close,
but don't save them. You close the file. The AutoClose routine runs, Saving
the file As another name. But this prevents the final prompt to save changes
in the FILE ITSELF from appearing. Thus, your backup has the latest changes to
your file, but your file itself doesn't.
At the beginning of the AutoClose module, I could simply add a line of code to
Save the file. But I'd rather be prompted to do so, just in case.
Thanks for any help.
Jay
WinXP
I recently had a minor disaster in which I must have sent an important file to
the Recycle Bin with some other stuff and then emptied the Bin, forever losing
the file. (I downloaded a sample recovery program, but it showed all sorts of
ancient files, but not the one I had just trashed.)
Anyway, does anyone have a few good lines of code to save a backup copy of a
Word file in a separate folder, as part of the closing or Quit routine?
I know the basic code for Saving As, etc. What I'm wondering is, Is there a
way to put such code in an AutoClose or Close Event module in a way that will
save the backup and save the file itself correctly and smoothly?
Here's the scenario: You have a Save As routine in your AutoClose module for
the backup version. You make some changes in the file you're about to close,
but don't save them. You close the file. The AutoClose routine runs, Saving
the file As another name. But this prevents the final prompt to save changes
in the FILE ITSELF from appearing. Thus, your backup has the latest changes to
your file, but your file itself doesn't.
At the beginning of the AutoClose module, I could simply add a line of code to
Save the file. But I'd rather be prompted to do so, just in case.
Thanks for any help.
Jay