The code as posted goes in the ThisDocument module of the document, which should be saved as macro enabled. It runs automatically when you enter and leave the content control.
I will probably create a web page with a fuller explanation, but I am currently away from my office until at least December.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|