I guess it's because dim guest(10) = start from 0 ...9
so 10 is not valid