VBA-tools / vba-test

Add testing and TDD to VBA on Windows and Mac
MIT License
202 stars 46 forks source link

WorkbookReporter should be able to create it's own output sheet #29

Open connerk opened 5 years ago

connerk commented 5 years ago

when assigning WorkbookReporter.ConnectTo(), it will attach to any worksheet.

if you try to run WorkbookReporter.Start() subsequently, a runtime error will occur if the sheet connected to does not contain specificly named ranges and shapes.

it would be great if Start() or Initialize() could do the following

  1. me.pSheet is null => create a new sheet with pretty report formatting and the required shapes and ranges
  2. me.pSheet does not contain each of the required named ranges or shapes => create these entities, or describe to the user why it can't continue, and how to fix it.