![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Mar 2002
Posts: 75
|
I know this is a question that has already been answered some where in the forum. because I have seen it, but can not locate it for the life of me.
What I want to do is just have a macro run whenever a given workbook is opened. How does one go about doing that? Thanks in advance for the help Paul |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
Hi
Auto_Open() the worlds your oyster~
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Place the call function to your macro in the Workbook_Open event:
Private Sub Workbook_Open() Call YourMacroName End Sub
__________________
Kind regards, Al Chara |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Posts: 75
|
Thanks for the help, that does the trick!
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Posts: 75
|
Guess I spoke a bit soon.
Where is the workbook open event at, the code is working great, I just can't find where I need to put it. Thanks for the help |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Location: Maryland
Posts: 424
|
Hi!
When you go into VBEditor for the workbook click on 'ThisWorkbook' Select Workbook under the General dropdown list. It will create the subroutine for you. All you have to do is enter the macro that you want to run. Happy Days! |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|