Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Fields Used
Hi
I have a shared database that is really large. Several people have created mail merge documents only using a few of the database's fields. Is there a way I can extract a list from Word of the mail merge fields used within a document? If that is possible, is there a way to automate this process as there are a LOT of mail merge files to go through (over 3,000). Cheers, Tywardreath. |
#2
|
|||
|
|||
You might use a macro something like the following that will display a list
in the VBA immediate window: Sub ListMergeFieldsInDoc() Dim oFld As Field For Each oFld In ActiveDocument.Fields If oFld.Type = wdFieldMergeField Then Debug.Print oFld.Code.Text End If Next End Sub -- Greg Maxey/Word MVP See: http://gregmaxey.mvps.org/word_tips.htm For some helpful tips using Word. Tywardreath wrote: Hi I have a shared database that is really large. Several people have created mail merge documents only using a few of the database's fields. Is there a way I can extract a list from Word of the mail merge fields used within a document? If that is possible, is there a way to automate this process as there are a LOT of mail merge files to go through (over 3,000). Cheers, Tywardreath. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I *automatically* update fields before I print? | Microsoft Word Help | |||
Having multiple form fields automatically updated | Microsoft Word Help | |||
Custom Fields in Word 2002 (XP) | Microsoft Word Help | |||
Attempting to auto-update fields in a word document | Microsoft Word Help | |||
Using MAILMERGE fields within HYPERLINK fields for Merge to Email | Mailmerge |