I think it has to do with the variant 'n.' It's running it 101 times and after the data is empty it'll give the subscript out of range error.