Hey guys
Here's the deal.
I have a procedure that opens another workbook to import data into it. It has a Workbook_Open event that I don't want to execute when it opens, how do I disable it???
Thanks
Hey guys
Here's the deal.
I have a procedure that opens another workbook to import data into it. It has a Workbook_Open event that I don't want to execute when it opens, how do I disable it???
Thanks
New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.
Hi Joseph,
Application.EnableEvents is your friend here [vba] Dim WB As Workbook
Application.EnableEvents = False
Set WB = Workbooks.Open(WBPathAndName)
Application.EnableEvents = True[/vba]Matt
Awesome, forgot about that one!
Thanks Matt
New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.