You put the code in the wrong module. Take it out of Module1 and put it into ThisDocument.
The module is 'special' as having the code there allows it to be fired off by document events rather than needing you to tell Word when to run it.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|