Maneesh Massey
Member
Hi,
I want to split the first and last names in a text box entry. I'm using the following code, but it is not working as intended.
The name of the text box is Arec7.
The above code should split the first and last names and put them in proper case but this is not happening. What seems to be wrong ???
Any help would be appreciated.
Regards,
Maneesh
I want to split the first and last names in a text box entry. I'm using the following code, but it is not working as intended.
Code:
Private Sub Arec7_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim myString As String
myString = Me.Arec7.Value
myString = StrConv(Left(Me.Arec7.Value, 1) & " " & Mid(Me.Arec7.Value, 2), vbProperCase)
End Sub
The above code should split the first and last names and put them in proper case but this is not happening. What seems to be wrong ???
Any help would be appreciated.
Regards,
Maneesh