Are you sure all your code is here? There is no "for... next loop" in what you posted.