Find Mail Merge fields

H

hb

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
 
T

Tony Jollans

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
 
Top