Hi
See Chip Pearson's site for more info
http://www.cpearson.com/excel/events.htm
Example code :
Sub Auto_open()
MsgBox "Hi"
End Sub
Must be in a normal module
If you use a Auto_open macro then this wil not run if you open the file with a macro
Or a event
Private Sub Workbook_Open()
'macro name or code
End Sub
Right click on the Excel icon next to File in the menubar
And choose View code
You are now in the Thisworkbook module
Paste the Event in this place
Alt-Q to go back to Excel
Save and close the file