#1
|
||||
|
||||
Macro to run anytime any doc is opened
Hi friends!
I want a macro to run anytime any doc is opened. I put the following in the normal.dotm: Sub document_open()But if the normal.dotm is already open in another doc it doesn't execute when I open another doc. Is there a way to get this to run without adding to every doc itself? Thank you and have a good day! Susan Flamingo |
#2
|
|||
|
|||
Put the following in a standard module of the Normal.Template.
Sub AutoOpen() 'Your code here. End Sub Note this will only work with documents that has Normal.dotm as the attached template. |
#3
|
||||
|
||||
As always work perfectly. Thnk you!!!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cannot save an opened message | Tom McW | Outlook | 1 | 05-08-2019 06:44 PM |
Anytime a section of TOC is updated, the picture stored in that section gets copied into my TOC. | brap367 | Word | 1 | 12-15-2014 12:49 PM |
Help! Can't Get Macro To Work In .docx Opened Off A Website | Mhangoy | Word VBA | 0 | 08-29-2013 03:02 AM |
Run Macro anytime new mail message form is opened | starrouter | Outlook | 1 | 02-24-2013 11:29 AM |
Who opened it | Wascar | Word | 1 | 03-01-2012 01:30 AM |