Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is there any trick to getting the Workbook_Open() event to work? I currently
have a workbook with the following calls in the ThisWorkbook code module: Option Explicit Private Sub Workbook_Activate() Call AddButtons End Sub Private Sub Workbook_Deactivate() Call DeleteButtons End Sub Private Sub Workbook_Open() Call AddButtons End Sub It compiles properly and works flawlessly as I switch back and forth between workbooks, but it never seems to work when I first open a workbook. I can open two different workbooks that have this code and get no buttons created. Then I switch between them and the buttons come and go as expected. I'm using Excel97 if that makes any difference. I've also tried immediately disabling events upon entering Workbook_Open, then executing the Call and finally enabling events again before exiting but it makes no difference. It just seems like the event never triggers. Or perhaps I'm misunderstanding what it should do? Thanks. Bill |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet Change event | Excel Discussion (Misc queries) | |||
Same event, multiple sheets? | Excel Discussion (Misc queries) | |||
Excel Automation SelectionChange event | Excel Discussion (Misc queries) | |||
Worksheet Row Change event | Excel Discussion (Misc queries) | |||
Event 1001 & 1004 | Excel Discussion (Misc queries) |