Inspection Details

ConstantNotUsed


Summary
Locates 'Const' declarations that are never referenced.
Reasoning
Declarations that are never used should be removed.
The following code example(s) would trigger this inspection:

Private Const foo As Long = 42
Public Sub DoSomething()
    ' no reference to 'foo' anywhere...
End Sub

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

Private Const foo As Long = 42
Public Sub DoSomething()
    Debug.Print foo
End Sub


Back to List