How to run a macro as soon a a workbook (.xls) is opened?
R Rowan Drummond Dec 15, 2005 #2 Use the Workbook_Open event. In Excel right click the Excel Icon just left of the File Menu. Select View Code. Paste the following and change as required: Private Sub Workbook_Open() MsgBox "Hello World!" End Sub Hope this helps Rowan
Use the Workbook_Open event. In Excel right click the Excel Icon just left of the File Menu. Select View Code. Paste the following and change as required: Private Sub Workbook_Open() MsgBox "Hello World!" End Sub Hope this helps Rowan