VBA160 — Assignment to constant not permitted¶
Severity: 🔴 error Category: assignment Phase: 2.13
Description¶
A Const or Enum member is read-only and cannot be assigned to.
Failing example¶
Compliant example¶
How to fix¶
Assign to a variable, not a constant or Enum member.
Source: src/rules.py — entry VBA160.