Hi Everyone, I'm trying to simplify this code but am not sure how to go about it or where to put it. I thought maybe a select case in userform_click event but am not having any luck.
These all just call an on screen keyboard when textbox is selected and set the variants for returning the data from the keyboard to the userform textboxes.
It's working just fine and I'd leave it as is but there are a lot more textboxes to add into the mix once I find a solution and the code page is already quite long.
Thanks, Jordan
These all just call an on screen keyboard when textbox is selected and set the variants for returning the data from the keyboard to the userform textboxes.
Code:
Private Sub TextBoxAddress_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxAddressS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxCellPhone_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxCellPhoneS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxCity_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxCityS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxEmail_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxEmailS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxFirstName_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxFirstNameS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxHomePhone_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxHomePhoneS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxLastName_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxLastNameS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxSecondEmail_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxSecondEmailS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxState_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxStateS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxWorkPhone_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxWorkPhoneS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxZip_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
Private Sub TextBoxZipS_Enter()
tPar = ActiveControl.Parent
tField = ActiveControl.Name
UFKeyboard.Show
End Sub
It's working just fine and I'd leave it as is but there are a lot more textboxes to add into the mix once I find a solution and the code page is already quite long.
Thanks, Jordan