You would do better to format the client's name in a unique character or paragraph Style, then use a STYLEREF field in the header to refer to that Style. No code needed.
Are you sure the Section specified by ActiveDocument.Sections(i) exists when the code is run?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|