Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Using Office 2003 and Windows XP;
I have the following event in ThisWorkbook: Private Sub Workbook_Open() Call FileOpenRequest End Sub In the above, FileOpenRequest is a function that first unhides a sheet and very hides a couple others, turns on sheet protection without any password, and a few other pretty basic settings so the opening sheet will look right for the user. The first time I open this file Workbook_Open runs perfectly. The second time I open the file in the same instance of Excel, Workbook_Open fails to fire. It is as though macros are disabled, even though they are not. Security is set to medium and it asks if macros should be enabled, of course I open with macros enabled. After the file loads, I can open the VBE and manually run the code and it runs fine. If I close Excel completely and open a new instance, it runs fine the first time, then it will never fire again in that instance. Does anyone have a clue why it is failing like this? And, more importantly, how the heck to fix it? Thanks much in advance for your assistance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
event fire | Excel Programming | |||
Excel 97 fails to execute Workbook_Open() on New XLS from Template (FYI) | Excel Programming | |||
Private Sub Workbook_Open() event won't fire if workbook is hidden? | Excel Programming | |||
Event doesn't fire | Excel Discussion (Misc queries) | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming |