VBR00091 — Object variable or With block variable not set
Severity: Error · Family: VBR (runtime semantics) ·
Source metadata: VBRuntimeErrorInfo
An object is used that is not set to anything.
MS-VBA run-time error 91; the numeric portion of the code is the error's number. This code is raised by LetAssignmentEvaluator, ProcedureExecutor, RuntimeExpressionEvaluator, VBObjectLetCoercionRuntimeSemantics.
How it is raised
| Situation | Example | Resolution |
|---|---|---|
| An object is used that is not set to anything. | x.Name when x is Nothing, For Each over Nothing |
Set the variable before using it. |
See also
⏮️ VBR00076 Path not found | ⏭️ VBR00092 For loop not initialized
ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca