Hy WyRm,
The code you posted is for automatically saving a new document with the user's name & date, even before they start working on it.
What you're describing, though, is a process that intercepts the File|Save process to suggest a filname based on some content in the document, plus the date. This too could be done, but you would need to ensure the data for the filename are always in the same location and do not contain characters that aren't valid for a filename. Things one can't rely on include content being in, say, the 3rd paragraph, as that could get messed up by it being deleted or paragraphs being inserted/deleted ahead of it. You could, however, refer to a non-deletable content control via its title. Even then, you'd need error handling for what to do if the 'name' is empty when the user tries to save the file.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|