View Single Post
 
Old 03-22-2013, 10:22 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote