Table of Contents

VBR00009 — Subscript out of range

Severity: Error  ·  Family: VBR (runtime semantics)  ·  Source metadata: VBRuntimeErrorInfo

An index is outside the bounds of an array, or a collection has no such item.

MS-VBA run-time error 9; the numeric portion of the code is the error's number. This code is raised by ArrayBoundRuntimeSemantics, ArrayStatementRuntimeSemantics, LetAssignmentEvaluator, RuntimeExpressionEvaluator, StdCollection.

How it is raised

Situation Example Resolution
An index is outside the bounds of an array, or a collection has no such item. a(11) of Dim a(1 To 10), c(5) of a collection of three Index from LBound to UBound.

See also


⏮️ VBR00007 Out of memory | ⏭️ VBR00010 This array is fixed or temporarily locked


ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca