Skip to content

VBA002 — Member not found

Severity: 🔴 error Category: member_access Phase: 0

Description

A obj.Member access references a member that is not part of the object's type.

Failing example

Dim r As Range
r.NotAMember = 1

Compliant example

Dim r As Range
r.Value = 1

How to fix

Check the type's members in the object browser; use --host to load the matching model.


Source: src/rules.py — entry VBA002.