ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Workbook_Open question (https://www.excelbanter.com/excel-programming/313017-workbook_open-question.html)

Sheldon

Workbook_Open question
 
How do I open a workbook and bypass the Workbook_Open event? I already have
code in the procedure, but I forgot to comment it out for the next open.

Thanks

[email protected]

Workbook_Open question
 
You could throw in an
Application.EnableEvents = False
before you open the workbook and then
Application.EnableEvents = True
afterwards


Tom Ogilvy

Workbook_Open question
 
Application.EnableEvents = False
Workbooks.Open "C:\MyFiles\MyFile.xls"
Application.EnableEvents = True

--
Regards,
Tom Ogilvy


"Sheldon" wrote in message
...
How do I open a workbook and bypass the Workbook_Open event? I already

have
code in the procedure, but I forgot to comment it out for the next open.

Thanks





All times are GMT +1. The time now is 11:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com