To disable event code use Application.EnableEvents = False (and don't forget to set it back to True later)