Skip to content

VBA_LEX005 — Identifier too long

Severity: 🔴 error Category: lexer Phase: 3.9

Description

VBA identifiers (names) are limited to 255 characters.

Failing example

Dim aaaa…(>255 chars) As Long

Compliant example

Dim total As Long

How to fix

Shorten the identifier to 255 characters or fewer.


Source: src/rules.py — entry VBA_LEX005.