Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Retrieving mailmerge fields from s source document

Retrieving mailmerge fields from s source document

Retrieving mailmerge fields from s source document

I need some help please. I need to list out all mailmerge fields from a Word source document so I can run a mailmerge to retrieve data for checking our database.
I need some vba which will read through the sourcedocument and output all fields to a word document and including the mailmerge formatting.
Reason is the word Sourcedocument has over 2000 merge fields and doing it manually would take hours .

i,e In WORD,
click Mailings , Insert Merge Fields, then select each field.


RE: Retrieving mailmerge fields from s source document

Your approach is entirely wrong - all you're doing is creating new mergefields, not generating anything like a report of the fields actually used in the document (or their formatting). For what you want, simply open the mailmerge main document and delete everything that isn't a mergefield.

Paul Edstein
[MS MVP - Word]

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close