![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 3
|
How do I set a macro to run as soon as the Excel file is opened?
Thanks.... |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
Name your macro Auto_open() and it will be executed when the file is open.
Likewise, a macro named Auto_close() will be executed when the file is closed. Ricky |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
Hi
To add good call Ricky.. Always your fine Auto_Opens are for that shhet so Auto_Close will be needed to reverse this. CAUTION... Auto_Open that say removed toolbars will efect other open WkBks so be careful.. Close them and re open will be fine if reversed but can be a pain...
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|