Jean-Guy Marcil was telling us:
Jean-Guy Marcil nous racontait que :
maryFlower was telling us:
maryFlower nous racontait que :
You mean that you have a bunch of
{SUBSECTIONBODY1}
fields? Field codes are always between a pair of {}, make sure you
see those {} when you report the content of the field code (not the
same as using the mailmerge tool bar button to toggle field code and
field value.
Did you get that from doing SHIFT-F9 (Was the SHIFT-F9 successful?)
or did you have to resort to ALT-F9 to get that to display?
I have never seen a merge from a data source yield fields that are all of
the same type. This third party application is doing something I have never
seen.
In any case, try this on a copy of your document:
'________________________________
Dim MyField As Field
For Each MyField In ActiveDocument.Fields
If Trim(MyField.Result = "") Then
MyField.Delete
End If
Next
'________________________________
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org