title: How to catch page exit event of multipage control in Excel VBA
body: <p>I have a multipage control on a userform. When the user navigates to a new page, I want the data on the current page to be saved to a database. The user can navigate between pages in various ways and I don't want to write a procedure for all of them. Is there an event I can use to reference the active page before the new page is selected?</p>
  
  <p>I have looked at the Change event of the multipage control but if you reference multipage.selecteditem in there it refers to the new page. What I need is a BeforeChange event but there isn't one.</p>
  
  <p>I have also looked at the multipage.exit event, but that triggers when the entire multipage control is exited, not just a page.</p>
  
  <p>Any ideas?</p>