Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Will
 
Posts: n/a
Default Automating Document Title

Hello, I have a data form template with about 20 text fields to be filled in
by a user. There are two fields that combined would be perfect file names for
each Word doc to be saved as.

For example:

Case Number: 431-678549
LName: Smith

Currently the user must retype in the file save dialog box "431-678549
Smith". I'd like to automate this process in the template. I have research
various options on the MVP.org site and a few others and while there are some
ideas around this, I wasn't able to extract enough information to implement
this plan yet.

Does anyone have an idea of thow to do this?


  #2   Report Post  
Posted to microsoft.public.word.newusers
Doug Robbins - Word MVP
 
Posts: n/a
Default Automating Document Title

You would need to run a macro that used the results of those formfields to
create the filename

Dim fname as String
With ActiveDocument
fname = .FormFields("CaseNumber").Result
fname = fname & " " & .FormFields("Lname").Result
.SaveAs fname
End With

You could have the macro run on exit from one of the formfields to automate
its use.

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

"Will" wrote in message
...
Hello, I have a data form template with about 20 text fields to be filled
in
by a user. There are two fields that combined would be perfect file names
for
each Word doc to be saved as.

For example:

Case Number: 431-678549
LName: Smith

Currently the user must retype in the file save dialog box "431-678549
Smith". I'd like to automate this process in the template. I have research
various options on the MVP.org site and a few others and while there are
some
ideas around this, I wasn't able to extract enough information to
implement
this plan yet.

Does anyone have an idea of thow to do this?




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting title document property affects retrieval of author [email protected] Microsoft Word Help 0 January 25th 06 06:06 AM
macros and SharePoint WSS document libraries [email protected] New Users 0 October 6th 05 03:42 AM
Automating creation of a PDF document from Word via VBA rtrsr Microsoft Word Help 6 June 25th 05 06:09 AM
Automating creation of a PDF document from Word via VBA rtrsr Microsoft Word Help 0 June 24th 05 12:39 AM
Document Map Question PosseJohn Page Layout 2 March 23rd 05 01:27 PM


All times are GMT +1. The time now is 06:36 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"