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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Macros: Main Function?

Status
Not open for further replies.

zoomby

Programmer
Aug 5, 2002
60
0
0
DE
hi!

How can I, with vb, create a fucntion that's called when the word document is load? I tried a "Sub AutoNew" but it's not called

bye
chris
 
Sorry but I'm a newbie with macros. I tried to search the net for word macros, but I hardly found anything useful. Can someone give me a link to a good tutorial, or any other site which deals with word macros?

bye
chris
 

Open Code window for the document you want to modify. In the left combo box above the code window you will see one entry (document). Click on that and you should get something like...
[tt]
Private Sub Document_New()

End Sub
[/tt]

Your best bet with this site for information on VBA coding is forum707.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top