VBA170 — Exit For not within For...Next¶
Severity: 🔴 error Category: control_flow Phase: 2.11
Description¶
Exit For is only valid inside a For / For Each loop.
Failing example¶
Compliant example¶
How to fix¶
Remove the Exit For or place it inside a For loop.
Source: src/rules.py — entry VBA170.