Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Run a macro at startup
I have a macro that I need to run in an Excel file when
the worksheet opens. Any ideas? Robyn |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Run a macro at startup
Robyn,
You can use the Workbook_Open event under ThisWorkbook eg. Private Sub Workbook_Open() MsgBox "Hello!" End Sub Or you can include a Sub in one of the modules called: Auto_Open (I think this is an older way of doing it - you should use Workbook_Open) eg. Sub Auto_Open() MsgBox "Hello!" End Sub Rob "Robyn Thomas" wrote in message ... I have a macro that I need to run in an Excel file when the worksheet opens. Any ideas? Robyn |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Automatic Startup for a Macro | Excel Discussion (Misc queries) | |||
Startup Macro | Excel Discussion (Misc queries) | |||
starting a macro at startup | Excel Discussion (Misc queries) | |||
Startup macro | Excel Discussion (Misc queries) | |||
Automatic startup of an excel macro | Excel Programming |