In VBE duoble click on Thisworkbook (in project explorer window)and copy this codePrivate Sub Workbook_Open()MsgBox "Helooo"End Sub