Automatically name document

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
 
S

Stefan Blom

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.
 
D

Doug Robbins - Word MVP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top