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

Execute a macro starting excel ?

Status
Not open for further replies.

cesarsoto

Technical User
Oct 3, 2002
3
US
I don't now how to execute a macro at the same time that I open excel or Power point?
 
place the code into the workbook "open" event....


alt+f11 > dbl click "this workbook" from left pane and then switch (from drop down in right pane) from general to workbook...then in right most drop down,...select "open"


paste your code there....removing sub you_macro () and the all but the last "end sub"


you should have



Private Sub Workbook_Open()

your code here

End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top