It is impossible to guess what you have done wrong as all the macros required are present in the listing.
See example attached. Change the value in the text box to 'test' or 'actual' and click elsewhere in the document to run the macro.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|