VBA120 — User-defined type not defined¶
Severity: 🟡 warning Category: type Phase: 1.6
Description¶
A declared type name does not resolve to any built-in type, source-declared Type/Enum/class, or host-model class. Library-qualified names (Scripting.Dictionary) are accepted leniently so un-modelled hosts don't false-positive.
Failing example¶
Compliant example¶
How to fix¶
Define the Type/Enum/class, fix the spelling, or load the matching host model with --host.
Source: src/rules.py — entry VBA120.