I am going through my code and adding all my error handlers and to turn on "break on all errors" and found a piece of code breaking and saying "Element not found"
the peice of code is from a question i asked:
and is in the final section:
Public Function SafeGetNode(Ind As Variant) As Node
On Error Resume Next
Set SafeGetNode = TreeView1.Nodes.Item(Ind) '<---this line here errors
So my question is:
Should I go through testing and validating my code using "Break on all errors"? and if yes... how do i fix this error?