When addressing an array it's always better to use LBound(ArrayName) and UBound(ArrayName) as the lower and upper element numbers. That way, if you have to change the number of elements in the array you won't have to go through your code changing every occurrence of the lower or upper element number.