Evidently, either:
• the document you've added the macro to has never been saved; or
• you've added the macro to a document template and you're trying to run it from that instead of from a document created from the template.
If running the code from a document attached to a template, change 'ThisDocument' to 'ActiveDocument'.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|