Subscript out of range

Error 9

 

Possible causes:

         Reference to a nonexistent array element.  The subscript may be larger or smaller than the range of possible subscripts, or the array may not have dimensions assigned at this point in the application.