The code should go in a new module as posted. It sounds like you have added the code to the end of a module that alreadly contains code.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|