Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I am confused. I have a document that contains a macro to perform a
mailmerge. The macro is called send_news. I want the macro to execute everytime the document which is called news letter is opened. I have tried using the macro switch in the run dialog box . Do i put the path name in for word or for the document. I am using word xp and office xp. Any help would be apreciated. The news letter document is in the my documents folder. Thanks |
#2
![]() |
|||
|
|||
![]()
G'Day Tzap 1998,
You do not tell us your version of Word. Open the document. ALT+F11 to get the VBA editor. Upper left "Project Explorer" - locate "ThisDocument" in the hierarchy for the open document AND double-click it. You will see a "Code Window" for ThisDocument. Upper Left dropdown - select "Document", Upper Right dropdown - select "Open", insert the name of your Macro: Private Sub Document_New() send_news 'Here OR ... End Sub Private Sub Document_Open() send_news '...here End Sub Use: Sub Document_Open() for a document, OR Sub Document_New() in a Template...... -- Regards, Pat Garard Australia _______________________ "tzap_1998" wrote in message ... I am confused. I have a document that contains a macro to perform a mailmerge. The macro is called send_news. I want the macro to execute everytime the document which is called news letter is opened. I have tried using the macro switch in the run dialog box . Do i put the path name in for word or for the document. I am using word xp and office xp. Any help would be apreciated. The news letter document is in the my documents folder. Thanks |
#3
![]() |
|||
|
|||
![]()
Rename the macro AutoOpen (if the macro is attached to the document or its
template). "tzap_1998" wrote in message ... I am confused. I have a document that contains a macro to perform a mailmerge. The macro is called send_news. I want the macro to execute everytime the document which is called news letter is opened. I have tried using the macro switch in the run dialog box . Do i put the path name in for word or for the document. I am using word xp and office xp. Any help would be apreciated. The news letter document is in the my documents folder. Thanks |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro in Word | Microsoft Word Help | |||
macro won't go away | Microsoft Word Help | |||
Word 2003 - create a macro with a pause in it. | Microsoft Word Help | |||
Should be simple! Macro to find italics won't run | Microsoft Word Help | |||
How to set a macro to insert a second page into a template | Microsoft Word Help |