Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto executing a macro on opening a word 97 document...

Status
Not open for further replies.

UncleScooby

Programmer
Jun 1, 2001
30
GB


Pleae help :

I am executing a DDE command that automatically opens a word document using '[FileOpen "C:\CONTACT.DOC"]'

Can I extend the DDE command to execute a macro as well...... or tie a macro to a specific document so it always gets run after opening.

Kind regards,

Scoobs
 
Just use this


Private Sub Document_Open()
'Code Here
End Sub


Every time the document is opened it will run.

Dave
David Lerwill
"If at first you don't succeed go to the pub"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top