Closed ChrisBrackett closed 4 years ago
This is a long-standing resolver issue that I wish we could fix before releasing 2.5.0, now that we have what it takes to fix it (namely, identifying the base class for document modules, via the TypeLib API).
Until then, RD doesn't know that Sheet1
is a Worksheet
, or that ThisWorkbook
is a Workbook
.
Endless possibilities...Does that also cover the possibility that document module Chart1 could be a chart object?
Yes
Rubberduck version information
Description RD inspection flags "Set assignment with incompatible object type" error when setting an Excel.Worksheet variable with an Excel.Worksheet codename. This wasn't always flagged by RD in the past though I'm not sure when it started.
The code below looks clean to me. Is this intentionally flagged?
To Reproduce Steps to reproduce the behavior: