Aug 29, 2004 #1 mikeburg Technical User Jun 19, 2003 23 US How do you set a macro to run when a word document is word document is opened? The macro is only for that particular document. I know how in excell, I merely name the macro auto_open. Doing so is not working in MS Word. Mike mikeburg@gower.net
How do you set a macro to run when a word document is word document is opened? The macro is only for that particular document. I know how in excell, I merely name the macro auto_open. Doing so is not working in MS Word. Mike mikeburg@gower.net
Aug 29, 2004 #2 ETID Programmer Jul 6, 2001 1,867 US In the vba editor... (make sure you select "this document" & not normal.dot) then in the right frame, from the left drop down select "document" and in the right drop down "open" you will see this auto generated Private Sub Document_Open() 'your code goes here End Sub Upvote 0 Downvote
In the vba editor... (make sure you select "this document" & not normal.dot) then in the right frame, from the left drop down select "document" and in the right drop down "open" you will see this auto generated Private Sub Document_Open() 'your code goes here End Sub
Aug 29, 2004 #3 fumei Technical User Oct 23, 2002 9,349 CA You should also be able to use AutoOpen in any code module, within Word. Note that it is AutoOpen, not Autpen. Gerry Upvote 0 Downvote
You should also be able to use AutoOpen in any code module, within Word. Note that it is AutoOpen, not Autpen. Gerry