Visual Basic Scripting Edition  

Subscript out of range

The array you are trying to access contains fewer elements than you expect. For example, attempting to access the 11th element of an array dimensioned for ten elements.

To correct this error

See Also

UBound Function | LBound Function | Dim Statement | ReDim Statement