Document Events Window

Select Events - View Code from the View menu or Macro - Application Events - View Code from the Tools menu to display the Document Events window.