![]() |
#2
|
||||
|
||||
![]()
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 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Microsoft Word 2013 Documents open as full version documents on two computers sporadically | Jaydenc-Fortress | Word | 2 | 08-07-2014 12:34 AM |
Macro for find/replace (including headers and footers) for multiple documents | jpb103 | Word VBA | 2 | 05-16-2014 04:59 AM |
![]() |
Catalin.B | Excel Programming | 2 | 09-07-2012 04:05 AM |
![]() |
Rose_Garden | Word | 1 | 03-31-2012 04:50 AM |
![]() |
zoeshaus | Outlook | 4 | 06-16-2010 12:20 PM |