Put the code in a new module.
Ensure that it appears as written, with no more missing line breaks as previously noted.
It should copy from the forum without error.
Click Debug > Compile Normal.
Which line reports the error?
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|