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!

Is there an event that is called as soon as we open an excell doc? 1

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
HI again

Is there an event to excell like "initialize", that is called as soon as we open the document?

Thank you again.
 
Hi Silvio,

The ThisWorkbook has a standard procedure:
Private Sub Workbook_Open (you can select it from the dropdown boxes).

For an add-in Auto_Open can be used.

Ciao,

IS
 
Both of these options work but when I change to another sheet then this suotmatic procedure also runs with it.

How can I run the procedure only once at start-up?

Thank you...
 
Use the Auto_Open sub in a project module, not in the sheet object (Insert > Module). This should tie the code to the workbook, not the individual sheets.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top