Dim my_array(10)
my_array(1)=5
my_array(6)=8
my_array(10)=9
my_array(11)=7 <---- This line cause Array Index Out of Bounds error. Array goes from 0 to 10, and you're trying to address index number 11.
my_array(1)=5
my_array(6)=8
my_array(10)=9
my_array(11)=7 <---- This line cause Array Index Out of Bounds error. Array goes from 0 to 10, and you're trying to address index number 11.