I have run the code with your document as the active document and do not get that error. I suggest you re-copy the code and paste into your attachment's 'ThisDocument' code module - and ensure your attachment is the active document when you run the code. You might then even change:
Set DocSrc = ActiveDocument
to:
Set DocSrc = ThisDocument
so that your attachment does not need to be the active document when you run the code.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|