Provided here you will find a table listing the various VBS script errors that you may encounter when creating and testing you scripts with a very brief description of each.
I am posting this information so that I can have quick access to the information since I am lazy and forgetful and I seem to keep forgetting where I saved the original Excel Spreadsheet.
Error
Description
5
Invalid procedure call or argument
6
Overflow
7
Out of memory
9
Subscript out of range
10
Array fixed or temporarily locked
11
Division by zero
13
Type mismatch
14
Out of string space
28
Out of stack space
35
Sub or Function not defined
48
Error in loading DLL
51
Internal error
53
File not found
57
Device I/O error
58
File already exists
61
Disk full
67
Too many files
70
Permission denied
75
Path/File access error
76
Path not found
91
Object variable or With block variable not set
92
For loop not initialized
94
Invalid use of Null
322
Can't create necessary temporary file
424
Object required
429
ActiveX component can't create object
430
Class doesn't support Automation
432
File name or class name not found during Automation operation
438
Object doesn't support this property or method
440
Automation error
445
Object doesn't support this action
446
Object doesn't support named arguments
447
Object doesn't support current locale setting
448
Named argument not found
449
Argument not optional
450
Wrong number of arguments or invalid property assignment
451
Object not a collection
453
Specified DLL function not found
455
Code resource lock error
457
This key already associated with an element of this collection
458
Variable uses an Automation type not supported in VBScript
500
Variable is undefined
501
Illegal assignment
502
Object not safe for scripting
503
Object not safe for initializing
1001
1002
Syntax error
1003
Expected ':'
1004
Expected ';'
1005
Expected '('
1006
Expected ')'
1007
Expected ']'
1008
Expected '{'
1009
Expected '}'
1010
Expected identifier
1011
Expected '='
1012
Expected 'If'
1013
Expected 'To'
1014
Expected 'End'
1015
Expected 'Function'
1016
Expected 'Sub'
1017
Expected 'Then'
1018
Expected 'Wend'
1019
Expected 'Loop'
1020
Expected 'Next'
1021
Expected 'Case'
1022
Expected 'Select'
1023
Expected expression
1024
Expected statement
1025
Expected end of statement
1026
Expected integer constant
1027
Expected 'While' or 'Until'
1028
Expected 'While', 'Until', or end of statement
1029
Too many locals or arguments
1030
Identifier too long
1031
Invalid number
1032
Invalid character
1033
Unterminated string constant
1034
Unterminated comment
1035
Nested comment
1037
Invalid use of 'Me' keyword
1038
'Loop' without 'Do'
1039
Invalid 'Exit' statement
1040
Invalid 'For' loop control variable
1041
Name redefined
1042
Must be first statement on the line
1043
Can't assign to non ByVal argument
1044
Can't use parens when calling a Sub
1045
Expected literal constant
1046
Expected 'In'
32766
True
32767
False
32811
Element not found
Don Hite put toghether a nice little chart for VBScript errors. Hope it helps someone http://myitforum