title: Excel VBA instantiate AfterCalculate event handler when opening workbook
body: <p>I want to handle Excel's <a href="https://docs.microsoft.com/en-us/office/vba/api/excel.application.aftercalculate" rel="nofollow noreferrer">Application.AfterCalculate event</a>.</p>
  <p>It appears that this can only be done using a class.  How do I define and instantiate such an event handler when the workbook is opened?</p>