1

Closed

xlUnitTestHarness.AttemptHookup fails when protected projects open

description

When creating a new test class, the xlUnitTestHarness.AttemptHookup method throws when any of the currently open workbooks have a protected VBProject.
 
Failing Line:
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
...
End If
 
I would edit the project directly, but I'm currently at work, so don't have time. Sorry :)
Closed Jun 24, 2010 at 4:45 PM by mikewoodhouse
Fixed in 0.1.1

comments