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

Automatic Macro

Status
Not open for further replies.

loo

Technical User
Nov 28, 2001
13
US
How do I have a macro run automatically when a workbook is opened?
 
Hi loo

Put the intended code in the Workbook activate event

Private Sub Workbook_Activate()
'
'your code here
'
End Sub

another alternative is have a Auto_Open procedure in a module

Sub Auto_Open()
'
'your code here
'
End Sub

Rgrds
LSTAN
 
I found it...
name the macro
Macro_open
and it runs on open...
too simple
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top