Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

How do I save a file using the value entered in a text form field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ScoJO - 23 Mar 2006 09:21 GMT
I have a word document that myself and others on my team must fill out
repeatly. I created a simple template for the basic form to automate the
process, I would like to automate the "Save As" file name using date from one
of the "Text form Fields". the file name would be
"SW_COA_XXXXXX_johnson.doc". The XXXXXX would be the numeric value entered in
Text Form Field labeled "Text 2".  Can this be done?

Scott
Doug Robbins - Word MVP - 23 Mar 2006 20:10 GMT
With ActiveDocument
   .SaveAs "SW_COA_" & .Formfields("Text2").Result & "_johnson.doc"
End With

I suggest that you give a more meaninful name to the bookmarks assigned to
your formfields.

Signature

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

>I have a word document that myself and others on my team must fill out
> repeatly. I created a simple template for the basic form to automate the
[quoted text clipped - 6 lines]
>
> Scott
ScoJO - 06 Apr 2006 22:07 GMT
DOUG,
Thanks for the help, it worked like a charm.

Scott Johnson

> With ActiveDocument
>     .SaveAs "SW_COA_" & .Formfields("Text2").Result & "_johnson.doc"
[quoted text clipped - 13 lines]
> >
> > Scott
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.