View Single Post
 
Old 09-25-2019, 04:48 AM
ukzrsuwy5p ukzrsuwy5p is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Sep 2019
Posts: 3
ukzrsuwy5p is on a distinguished road
Default Document_Open does not work in Word 2007 template

For employees to work, I need to put some functionality into the Document_Open macro. I want to put this macro in a template (.dot) and place it on the network. Office 2007 is installed on most machines, and I'm testing on it. I create a document, insert the macro code, save it as a template (.dot). I use the following macro as a test:
Code:
Sub Document_Open()
MsgBox "ABC" 
End Sub
Next, I create a document (.doc) and change the document template on my created template. I allow the execution of macros, the macro work. I save and close the document, when I reopen the document and enable macros, our macro does not work. What the problem is I can’t understand. Thank!
Reply With Quote