A complete collection of vbscript error codes and corresponding explanations
Author:Eve Cole
Update Time:2009-05-30 19:53:55
VBScript run-time errors A VBScript run-time error occurs when a VBScript script performs an operation that the system cannot perform. VBScript runtime errors occur only when running a script, assigning a value to a variable expression, or allocating memory.
Error number description
429 ActiveX component cannot create object
507 Exception occurred
449 Parameter is not optional
17 Unable to perform the requested operation
Class 430 does not support automation
506 Class not defined
11 divided by zero
48 Loading DLL error
5020 ')' required in regular expression
5019 ']' required in regular expression
432 Filename or classname not found in automation operation
92 For loop not initialized
5008 Illegal assignment
51 Internal error
505 Invalid or unqualified reference
481 Invalid image
5 Invalid procedure call or parameter
5021 Character set out of bounds
94 Illegal use of Null
448 Named parameter not found
447 Object does not support current locale
445 Object does not support this operation
438 Object does not support this property or method
451 Object is not a collection
504 Object cannot be created safely
503 Object cannot be initialized safely
502 Script object is unsafe
424 Object required
91 Object variable not set
7 Insufficient memory
28 Stack Overflow
14 String space overflow
6 overflow
35 Sub or Function not defined
9 Subscript out of bounds
5017 Syntax error in regular expression
462 The remote server does not exist or cannot be accessed
10 The array is fixed-length or temporarily locked
13 Type mismatch
5018 Wrong quantifier
500 Variable not defined
458 The variable uses an automation type that is not supported in VBScript.
450 Wrong number of parameters or invalid parameter attribute value
VBScript Syntax Errors A VBScript syntax error occurs if the structure of a VBScript statement violates one or more VBScript scripting language syntax rules. VBScript syntax errors usually occur when compiling a program before executing it.
Error number description
1052 Cannot have multiple default properties/methods in a class
1044 Parentheses cannot be used when calling Sub
1053 Class initialization or termination cannot take parameters.
1058 'Default' can only be specified in Property Get
1057 'Default' must also be specified as 'Public' "
1005 requires '('
1006 requires ')'
1011 requires '='
1021 'Case' required
1047 'Class' required
1025 End of statement required
1014 'End' required
1023 Expression required
1015 'Function' required
1010 Identifier required
1012 'If' required
1046 'In' required
1026 requires integer constant
1049 Let, Set or Get required in property declaration
1045 Literal constant required
1019 'Loop' required
1020 'Next' required
1050 'Property' required
1022 'Select' required
1024 Statement required
1016 'Sub' required
1017 requires 'Then'
1013 requires 'To'
1018 requires 'Wend'
1027 'While' or 'Until' required
1028 'While,', 'Until,' required or statement not ended
1029 requires 'With'
1030 Identifier too long
1014 Invalid character
1039 Invalid 'exit' statement
1040 Invalid 'for' loop control variable
1013 invalid number
1037 Invalid use of keyword 'Me'
1038 'loop' no 'do'
1048 Must be defined inside a class
1042 Must be the first statement in the line
1041 Name redefinition
1051 The number of parameters must be consistent with the attribute description.
1001 Insufficient memory
1054 Property Let or Set should have at least one parameter
1002 Syntax error
1055 Unnecessary 'Next'
1015 Unterminated string constant