Appendix E. VBScript Error Codes and the Err Object

Here you'll find all the error codes associated with VBScript along with the Err object.

Runtime Errors

Runtime errors occur wherever your script attempts to perform an invalid action. The vast majority of these errors should be caught during the debugging and testing stage. VBScript contains 43 runtime errors, which are listed in the following table with their decimal and hexadecimal representations.

Decimal

Hexadecimal

Description

5

800A0005

Invalid procedure call or argument

6

800A0006

Overflow

7

800A0007

Out of memory

9

800A0009

Subscript out of range

10

800A000A

This array is fixed or temporarily locked

11

800A000B

Division by zero

13

800A000D

Type mismatch

14

800A000E

Out of string space

17

800A0011

Can't perform requested operation

28

800A001C

Out of stack space

35

800A0023

Sub or Function not defined

48

800A0030

Err in loading DLL

51

800A0033

Internal error

91

800A005B

Object variable not set

92

800A005C

For loop not initialized

94

800A005E

Invalid use of Null

424

800A01A8

Object required

429

800A01AD

ActiveX component can't create object

430

800A01AE

Class doesn't support Automation

432

800A01B0

Filename or class name not found during Automation operation

438

800A01B6

Object doesn't support this property or method

445

800A01BD

Object doesn't support this action

447

800A01BF

Object doesn't support current locale setting

448

800A01C0

Named argument not found

449

800A01C1

Argument not optional

450

800A01C2

Wrong number of arguments or invalid property assignment

451

800A01C3

Object not a collection

458

800A01CA ...

Get VBScript Programmer's Reference, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.