The error almost certainly suggests that the 'heading' entry is not present in the document's attached template. The code I posted looks through all the available locations for the entry. The answer is to use the code I posted.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|