Skip to content

VBA153 — Implements method signature mismatch

Severity: 🔴 error Category: interface Phase: 2.12

Description

A method implementing an interface member must match the member's parameter count.

Failing example

' IShape: Public Sub Draw(ByVal scale As Double)
Implements IShape
Private Sub IShape_Draw()
End Sub

Compliant example

Implements IShape
Private Sub IShape_Draw(ByVal scale As Double)
End Sub

How to fix

Match the interface member's parameter list exactly.


Source: src/rules.py — entry VBA153.