I beleive it is set at static, If I take the Else: MsgBox ("Please Renter Correct Password"), vbOKOnly, "Error!", 0, 0 out of the top then the lower part works and after 3 attempts it gives the message and exits. If I leave the top part in all it does it give the Msg box and never looks at the 3...