I have userform text boxes with dates in them in the format "dd/mm/yyyy". I want to be able to show however only the "dd". The issue is that if I use this code:
Then the actual contents of my data gets lost. Ie using the code
returns only the day value and not the entire date.
Is there a way to format the text box so only the day value shows but still keeps the entire data?
Thanks!
Code:
Label20 = Format(Label20, "dd")
Then the actual contents of my data gets lost. Ie using the code
Code:
msgbox label20
returns only the day value and not the entire date.
Is there a way to format the text box so only the day value shows but still keeps the entire data?
Thanks!