I posted the wrong code. That code was to check if the message box was working before I found out about the Enter key initiating the msgbox. I did have spnMiscQty.Value > 100 before that.

I do not want the user to be able to choose a quantity above 100 because this program needs to be airtight. No room for error with my bosses...even user error.

Thanks for your quick reply David.