The code I posted was intended to be run from Word. The error message suggest that you are running it from Excel.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|