underpressure
Board Regular
- Joined
- Nov 24, 2012
- Messages
- 141
My UserFormDataEntry uses 3 TextBoxes to add the phone number to the cell as ##########
My worksheet displays the formatted phone numbers as (###) ###-####
How do I extract the numbers from the worksheet cell into another UserForm with 3 Textboxes?
This doesn’t work:
And, I'm looking for a similar solution for DateOfBirth in Cells(x, “H”) which is formatted ##/##/##.
My worksheet displays the formatted phone numbers as (###) ###-####
How do I extract the numbers from the worksheet cell into another UserForm with 3 Textboxes?
This doesn’t work:
Code:
Me.TextBox4.Value = Mid(Cells(x, "D").Value, 1, 3)
Me.TextBox5.Value = Mid(Cells(x, "D").Value, 4, 3)
Me.TextBox6.Value = Right(Cells(x, "D").Value, 4,)
And, I'm looking for a similar solution for DateOfBirth in Cells(x, “H”) which is formatted ##/##/##.