I am creating a userform that will allow a user to enter a playing card value into a textbox. But if the user enters "Jack" or "j" or "jack" or "11" (the numeric value of a jack), the text in the box will automatically change to a "J". So to be clear, any input that will indicate a jack, will automatically change to a single capital "J". This will be true for Queen, King and Ace as well so they display as "Q", "K", and "A".
I am trying just the first portion of the code that will change the word jack and I'm having issues. Any ideas?
The textbox is titled CardInput1
I am trying just the first portion of the code that will change the word jack and I'm having issues. Any ideas?
The textbox is titled CardInput1
Code:
Private Sub CardInput1_Change()
If InStr(CardInput1.Text, "j" Or "jack" Or "Jack" or "11") Then
Me.CardInput1.Text = "J"
End If
End Sub