Inspection Details

HostSpecificExpression


Summary
Warns about host-evaluated square-bracketed expressions.
Reasoning
Host-evaluated expressions should be implementable using the host application's object model. If the expression yields an object, member calls against that object are late-bound.
The following code example(s) would trigger this inspection:

Public Sub DoSomething()
    [A1].Value = 42
End Sub

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

Public Sub DoSomething()
    ActiveSheet.Range("A1").Value = 42
End Sub


Back to List