title: How to unit test Excel VBA code
body: <p>Does anyone have any experience with unit testing Excel VBA code?  I want to introduce unit tests into some legacy Excel VBA code as painlessly as possible. One idea I had would be to use VSTO to call code from inside the Excel workbook. I would like to know if others have tried this for the purpose of unit testing the Excel code, as well as any other methods they may have used for unit testing Excel VBA.</p>
  
  <p>I would appreciate some pointers as to any available frameworks and/or tips on unit testing Excel VBA code as well.</p>