The test code you're using merely copies & pastes the active document's primary header over its footer. It will produce an error if there's no primary header.
The UpdateDocumentHeaders code you posted doesn't replicate anything; all it does is add whatever you've typed at the InputBox prompt to the primary header of all documents in the selected folder.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|