E
Erich Neuwirth
I ran into trouble with Aut
pen and Workbook_Open
Workbook_Open, the officially recommended method
for executing macros automatically when
opening a workbook, does not work when
Application.EnableEvents = False
Aut
pen, on the other hand, always seems to be run.
I have some (protected) addins (not written by me) which rely on
workbook_open to be executed.
It seems that one of these addins is setting
Application.EnableEvents = False
Anyhow, when ich check EnableAddins after starting Excel, it is false.
So I tested if for one workbook Aut
pen is executed
before Workbook_Open. Then, Aut
pen could set
Application.EnableEvents = True
and then WorkBook_Open would be executed.
This does not work. It seems that if at all
Workbook_Open is executed before Aut
pen.
Is there a way to ensure execution of Workbook_Open
in a Workbook where one can not change the code?
Workbook_Open, the officially recommended method
for executing macros automatically when
opening a workbook, does not work when
Application.EnableEvents = False
Aut
I have some (protected) addins (not written by me) which rely on
workbook_open to be executed.
It seems that one of these addins is setting
Application.EnableEvents = False
Anyhow, when ich check EnableAddins after starting Excel, it is false.
So I tested if for one workbook Aut
before Workbook_Open. Then, Aut
Application.EnableEvents = True
and then WorkBook_Open would be executed.
This does not work. It seems that if at all
Workbook_Open is executed before Aut
Is there a way to ensure execution of Workbook_Open
in a Workbook where one can not change the code?