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!

Getting a macro to autorun

Status
Not open for further replies.

Stoffel24

Technical User
Apr 4, 2002
121
ZA
This is a follow up to my earlier question regarding creating a macro to put lines around cells that have data. Thanks to JustinEzequiel this has been done successfully. Now I want this macro to run automatically once the word document has opened and the table has been created. (The macros that create the table actually come from another program and "pump" the data through to word where a table of this data is created. So once you have made a few selections in the sending program, word opens and the table is created.) What I want to do is to have the macro that formats the table run automatically at this point. (ie after the table has been created.)

Thanks
 
Just call the macro AutoOpen and put it in a module.

Open the Visual Basic Help and search for Auto.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top