Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-27-2024, 02:03 AM
gmaxey gmaxey is offline Macro to run anytime any doc is opened Windows 10 Macro to run anytime any doc is opened Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,636
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

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.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot save an opened message Tom McW Outlook 1 05-08-2019 06:44 PM
Macro to run anytime any doc is opened 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
Macro to run anytime any doc is opened Run Macro anytime new mail message form is opened starrouter Outlook 1 02-24-2013 11:29 AM
Macro to run anytime any doc is opened Who opened it Wascar Word 1 03-01-2012 01:30 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:45 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