VBR00006 — Overflow
Severity: Error · Family: VBR (runtime semantics) ·
Source metadata: VBRuntimeErrorInfo
A result does not fit the type it is computed in or assigned to.
MS-VBA run-time error 6; the numeric portion of the code is the error's number. This code is raised by BinaryArithmeticOperatorRuntimeSemantics, BinaryRelationalOperatorRuntimeSemantics, InputListEvaluator, LetCoercionRuntimeSemantics, StdConversion, StdFinancial, UnaryArithmeticOperatorRuntimeSemantics, ValueConversionResult.
How it is raised
| Situation | Example | Resolution |
|---|---|---|
| A result does not fit the type it is computed in or assigned to. | CInt(40000), 32767 + 1 as Integer |
Use a wider type. |
See also
⏮️ VBR00005 Invalid procedure call or argument | ⏭️ VBR00007 Out of memory
ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca