WaqarCoder
New Member
- Joined
- Jan 29, 2021
- Messages
- 3
- Office Version
- 2016
- Platform
- Windows
I am using below code in my userform in order to put todays date by default. The below code sets the date in the given format in my textbox :-
But when I click Add data, then in the sheet1 the Date column is showing m/d/yy? I even set the Date column format as *dd/mm/yy but it still same issue.
How can I solve this?
VBA Code:
Private Sub UserForm_Initialize()
txt_date.Value = Format(Date, "d/m/yyyy")
End Sub
But when I click Add data, then in the sheet1 the Date column is showing m/d/yy? I even set the Date column format as *dd/mm/yy but it still same issue.
How can I solve this?