Good day everyone.
What I'm trying to achieve is, the textbox should be able to return date value instead string from another sheet2.
In sheet2 where the data is, I've set the respective cell as date.
Once I run the userform, and click a partiular value from the listbox, I'm getting string "64322" instead of "1/1/2021"
I've tried this, but no luck.
![]()
Private Sub TextBox12_Exit(ByVal Cancel As MSForms.ReturnBoolean) TextBox12.Text = Format$(TextBox12.Text, Range(TextBox12.ControlSource).NumberFormat) End Sub
Bookmarks