There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
xlUnitTestHarness.AttemptHookup fails when protected projects open
When creating a new test class, the xlUnitTestHarness.AttemptHookup method throws when any of the currently open workbooks have a protected VBProject.
For Each comp In wb.VBProject.VBComponents.
Fix: Verifying project is not protected before initializing inner loop:
If wb.VBProject.Protection = vbext_pp_none Then
I would edit the project directly, but I'm currently at work, so don't have time. Sorry :)