Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In the VBE, find the project explorer and double click on the ThisWorkbook
entry under you project. this is where you place code for workbook level events - one of which is the Open event which fires when the workbook is opened (and macros are not disabled by the user). It is best to let excel enter the declarations for these event macros, particularly if they have arguments (which open does not). At the top of the module select Workbook in the leftmost dropdown and in the right most, Open This will put in the declaration Private Sub Workbook_Open() End Sub Call your macro from here or put the code directly here. Regards, Tom Ogilvy "Daniel Thompson" wrote in message ... I have a list box on a worksheet I want to initialize when I first open the workbook. It is NOT located on a user_form. I understand how to populate the list box. My question is how do I get my initialization script to run when the workbook is first opened? Thanks Dan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Comparing List A to List B and add what's missing from List B | Excel Discussion (Misc queries) | |||
validation list--list depends on the selection of first list | New Users to Excel | |||
list 1 has 400 names List 2 has 4000. find manes from list 1 on 2 | Excel Worksheet Functions | |||
find names on list 1 in list 2. list 1 4000 names list 2 400 name | Excel Worksheet Functions | |||
How to control worksheet initialization upon opening a workbook | Excel Worksheet Functions |