To prevent this from happening in the future, place Option Explicit at the very top of you code. You would be surprised how often it is a life-saver because it forces you to correct spelling mistakes and declare all the variables correctly.