Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-28-2014, 12:02 AM
gmayor's Avatar
gmayor gmayor is offline Macro not starting from other documents Windows 7 64bit Macro not starting from other documents Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
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
 



Similar Threads
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
Macro not starting from other documents Excel stops responding after starting macro Catalin.B Excel Programming 2 09-07-2012 04:05 AM
Macro not starting from other documents merging documents in macro page no Rose_Garden Word 1 03-31-2012 04:50 AM
Macro not starting from other documents Starting Over zoeshaus Outlook 4 06-16-2010 12:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft