Skip to content

VBA221 — Property Let/Set has zero parameters

Severity: 🔴 error Category: property Phase: 2.3

Description

Property Let/Property Set must declare at least the value parameter.

Failing example

Property Let Name()
End Property

Compliant example

Property Let Name(ByVal RHS As String)
End Property

How to fix

Add the assigned-value parameter.


Source: src/rules.py — entry VBA221.