Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to know how to have an Excel worksheet automatically execute a
macro on startup? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Joseph,
The easy way is to use the Auto_Open macro. Sub Auto_Open() ' your macro here End Sub Another way would be to use the Workbook_Open Event handler. John "Joseph" wrote in message ... I would like to know how to have an Excel worksheet automatically execute a macro on startup? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can put your code in a general module and name that macro auto_open. (You
could also put the code in the workbook_open event under the ThisWorkbook module.) Then when you open your workbook (with macros enabled), your code will run. Joseph wrote: I would like to know how to have an Excel worksheet automatically execute a macro on startup? -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks guys!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Intermittent startup error -- inverted worksheet window in Excel 2 | Excel Discussion (Misc queries) | |||
Blank worksheet at startup | Setting up and Configuration of Excel | |||
Startup on a specific worksheet | Excel Discussion (Misc queries) | |||
how do i get excel to stop opening a blank worksheet @ startup? | Excel Discussion (Misc queries) | |||
How do I set a worksheet to be the default at startup? | Setting up and Configuration of Excel |