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
UBound Function | LBound Function | Dim Statement | ReDim Statement