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 / November 2006

Tip: Looking for answers? Try searching our database.

Find Mail Merge fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hb - 27 Nov 2006 12:12 GMT
I want to identify if a word document has the mail merge field eg. «Name» and
«Next Record» field in it. Is this possible and how?

thanks
Tony Jollans - 27 Nov 2006 12:31 GMT
You could walk the mail merge fields collection ...

   For Each fld In Me.MailMerge.Fields
       If InStr(UCase(fld.Code.Text), """NAMES""") Then
           ' Do whatever
       Else
           ' Do whatever else
       End If
   Next

Signature

Enjoy,
Tony

>I want to identify if a word document has the mail merge field eg. «Name»
>and
> «Next Record» field in it. Is this possible and how?
>
> thanks

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.