Use this statement before opening the workbook and set to True after closing.
Application.EnableEvents = False