Rubberduck icon indicating copy to clipboard operation
Rubberduck copied to clipboard

Rubberduck needs an inspection for bracketed member calls with no evaluate member

Open comintern opened this issue 8 years ago • 2 comments

Now that we can figure out what the member access is for bracketed member calls (see #2565), RD should have an inspection for use of bracketed calls on objects that do not implement them. For example, Workbook doesn't have a member with a DISPID of DISPID_EVALUATE. Since these are all late bound calls, this...

Sub Example()
    Debug.Print ActiveWorkbook.[A1] 'Runtime error.
End Sub

...compiles fine, but gives a run-time error 438 when executed. This should be an error level inspection.

comintern avatar Jan 21 '17 16:01 comintern