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
Bookmarks