I have three radio buttons that the user can select
Uppercase
Lowercase
Propercase
When the form initializes the Uppercase radio button is set to true
if the user selects one of the radio buttons I want the text already keyed into a textbox to update to the choosen radio button
I have attempted to do this using the change event on the textbox - The issue I have with this is the user needs to click back into the textbox and key in a space or more text to envoke the change event so the text updates
Is there a way so that as soon as one of the radio buttons is selected the text in the textbox updates immediately ?
Private Sub TextBox_EmployeeName_Change()
If OptionButton_ProperCase.Value = True Then
Me.TextBox_EmployeeName.Value = Application.WorksheetFunction.Proper(Me.TextBox_EmployeeName)
ElseIf OptionButton_UpperCase.Value = True Then
Me.TextBox_EmployeeName.Value = UCase(Me.TextBox_EmployeeName)
Else
Me.TextBox_EmployeeName.Value = LCase(Me.TextBox_EmployeeName)
End If
End Sub
Uppercase
Lowercase
Propercase
When the form initializes the Uppercase radio button is set to true
if the user selects one of the radio buttons I want the text already keyed into a textbox to update to the choosen radio button
I have attempted to do this using the change event on the textbox - The issue I have with this is the user needs to click back into the textbox and key in a space or more text to envoke the change event so the text updates
Is there a way so that as soon as one of the radio buttons is selected the text in the textbox updates immediately ?
Private Sub TextBox_EmployeeName_Change()
If OptionButton_ProperCase.Value = True Then
Me.TextBox_EmployeeName.Value = Application.WorksheetFunction.Proper(Me.TextBox_EmployeeName)
ElseIf OptionButton_UpperCase.Value = True Then
Me.TextBox_EmployeeName.Value = UCase(Me.TextBox_EmployeeName)
Else
Me.TextBox_EmployeeName.Value = LCase(Me.TextBox_EmployeeName)
End If
End Sub