Hi All,
I have a multipage userform which has multiple text boxes (7) for Date which get entered into seven different worksheets. The problem I am having is that despite my computer's regional formatting and the format of the cells, the userform is writing them in mm/dd/yyyy instead of the desired dd/mm/yyyy.
Is there a way I can force all of these textboxes to be in the correct format?
From a bit of googling I determined that I may be able to create a variable list containing the 7 textboxes and use something like:
Could anybody help me out with this?
Thanks in advance
I have a multipage userform which has multiple text boxes (7) for Date which get entered into seven different worksheets. The problem I am having is that despite my computer's regional formatting and the format of the cells, the userform is writing them in mm/dd/yyyy instead of the desired dd/mm/yyyy.
Is there a way I can force all of these textboxes to be in the correct format?
From a bit of googling I determined that I may be able to create a variable list containing the 7 textboxes and use something like:
Code:
Dim year As Long, year_control As Date
Dim strYear_control As String
year = Format(Date, "yyyy")
year_control = Format(Date, "dd/mm/yyyy")
strYear_control = Format(year_control, "dd/mm/yyyy")
Could anybody help me out with this?
Thanks in advance
Last edited: