View Single Post
 
Old 11-28-2014, 12:02 AM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The reason it doesn't work is that the macro is in the ThisDocument module, and 'ThisDocument' is the template itself, so it will only work for actions that relate to the template. Thus it works for the CC in the template body, but not for other documents.

See http://word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm which explains how to write application event procedures.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote