Rubberduck
Rubberduck copied to clipboard
Rubberduck needs an inspection for bracketed member calls with no evaluate member
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.