VBA007 — ByRef argument type mismatch¶
Severity: 🔴 error Category: signature Phase: 0
Description¶
A ByRef parameter receives a variable whose type does not match the parameter type.
Failing example¶
Compliant example¶
How to fix¶
Use a temporary variable of the matching type, or change the parameter to ByVal if a copy is acceptable.
Source: src/rules.py — entry VBA007.