You should always declare variables before use. You should also turn on option explicit to catch use of undeclared variables too. It catches a lot of bugs easily. Do you not use DIM for some reason?