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 / Mailmerge and Fax / May 2007

Tip: Looking for answers? Try searching our database.

Can I build a form that can be completed using a letter merge?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
auda19 - 30 Apr 2007 16:14 GMT
I would like to put together a form where a letter merge can be used to
complete the fields.  The main problem is that I would like to lock down the
remainder of the conmtent so users cannot change it.  I need to use the
letter merge because often times users need to fill out the forms for 20+
people at a time.
Doug Robbins - Word MVP - 30 Apr 2007 17:33 GMT
Mail Merge and Document Protection are mutually exclusive.  It would however
be possible to use VBA code to accomplish much the same thing using document
variables and docvariable fields rather than mail merge fields.

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 would like to put together a form where a letter merge can be used to
> complete the fields.  The main problem is that I would like to lock down
> the
> remainder of the conmtent so users cannot change it.  I need to use the
> letter merge because often times users need to fill out the forms for 20+
> people at a time.
Kathy Webster - 10 May 2007 00:25 GMT
Where can I read more on this technique?

> Mail Merge and Document Protection are mutually exclusive.  It would
> however be possible to use VBA code to accomplish much the same thing
[quoted text clipped - 7 lines]
>> letter merge because often times users need to fill out the forms for 20+
>> people at a time.
Doug Robbins - Word MVP - 10 May 2007 08:45 GMT
I don't know of a source where I can point you to read up on this specific
application of VBA, but what you would do is insert DOCVARIABLE fields in
the letter in the locations where you want the merged information to appear,
you would protect that document for forms, and then save it as a template.

Then you would have some code that opened the data source and iterated
through the records in the data source, creating a new document from the
template mentioned above and using the information from each field in the
current record to set the values of the document variables that correspond
to each of the DOCVARIABLE fields and after doing that, it would update the
fields in the document so that the information is displayed in those fields
and then save the document and close it before going on to the next record
in the data source and repeating the procedure.

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

> Where can I read more on this technique?
>
[quoted text clipped - 10 lines]
>>> 20+
>>> people at a time.

Rate this thread:






 
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.