![]() |
![]() |
|
|||||||
| 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: May 2002
Posts: 10
|
Can anyone tell me if it's possible to run a user-created macro automatically when a workbook is opened?
THANKS!! |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Ireland
Posts: 107
|
Yeah think so. when u open VBA click on thisworkbook and then choose the open property and set the macro to run within the function
__________________
[Brian] |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Alt + F11 Ctrl + R Double click on Thisworkbook Paste this code in. Private Sub Workbook_Open() Call YourMacroNameGoesHere End Sub _________________ Kind Regards, Ivan F Moala [ This Message was edited by: Ivan F Moala on 2002-05-13 07:22 ] |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 10
|
Thanks eddd82 and Ivan. That seemed to work!!
NOW, ... CAN YOU TELL ME what command can I put in the open workbook macro that will accept "ENABLE MACROS"? |
|
|
|
|
|
#5 |
|
New Member
Join Date: May 2002
Posts: 10
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|