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!

Run Macro on open of Excel2000 spreadsheet 2

Status
Not open for further replies.

hsummer

Technical User
Dec 10, 2001
13
US
I want a form to load or macro to run when a certain workbook is opened - like autorun. I open it from Excel (not from another VBA app).

How do I do it?

Thanks,
Harold
 
Put this in the code pane for ThisWorkbook, sit back and enjoy!

Option Explicit

Private Sub Workbook_Open()
UserForm1.Show
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top