If you have Option Explicit at the top of your code, it forces you to define your variables, and then helps correct your code.