Automatically name document

  • Thread starter Thread starter A_Classic_Man
  • Start date Start date
A

A_Classic_Man

I have a Word form with a date field. I would like the date entered in
the field to show as the name of the form when the form is emailed as
an attachment and/or saved. How is this accomplished?

Thanks in advance

Ron
 
You may want to ask in a programming newsgroup such as
microsoft.public.word.vba.general for assistance with this. At least the
second task should be possible with a macro.
 
With ActiveDocument
.SaveAs .Formfields("dateformfield").Result
End With

See the article "How to send an email from Word using VBA" at:

http://www.word.mvps.org/FAQs/InterDev/SendMail.htm


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
Back
Top