Hmmm. It works here as expected. The problem most probably relates to the use of text boxes, when invariably table cells or frames make better choices for putting fields in boxes. Text boxes are essentially graphical objects.
Nevertheless the posted code should work in a text box in the body of a document.
Can you post your document?
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|