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

How do you indicate that one of your macros is an autoexec macro

Status
Not open for further replies.

WantsToLearn

Programmer
Feb 15, 2003
147
US
Where do I go to designate a macro as being an autoexec macro (eg it runs immediately when the workbook file opens).

Thanks!
 
Hi

Do it at the ThisWorkBook module. Choose the Workbook_Open() procedure.

eg:
Private Sub Workbook_Open()
'
'Code to execute when workbook is
'open
'
End Sub


Alternate you can insert a blank module and have the Auto_open() procedure in it.

eg:
Sub Auto_Open()
'
'Code to execute when workbook is
'open
'
End Sub

LSTAN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top