Inspection Details

StopKeyword


Summary
Locates 'Stop' instructions in user code.
Reasoning
While a great debugging tool, 'Stop' instructions should not be reachable in production code; this inspection makes it easy to locate them all.
The following code example(s) would trigger this inspection:

Public Sub DoSomething()
    ' ...
    Stop ' halts execution on-the-spot, bringing up the VBE; not very user-friendly!
    '....
End Sub

The following code example(s) would not trigger this inspection:

Public Sub DoSomething()
    ' ...
    'Stop ' the commented-out statement isn't executable. Could also be simply removed.
    ' ...
End Sub


Back to List