Hi all,
I'm currently using a user form with current "UserForm_Activate" settings as follows:
Up to this point I'm ok, as the date on the user form defaults to dd/mm/yyyy (e.g. 28/02/2011).
I also have the below code for when the user clicks on the "Enter" button on the user form, which transfers the date from the form to the spreadsheet:
The date does get transfered to the spreadsheet, but in the mm/dd/yyyy format (e.g. 02/28/2011).
I've changed the format under "Format Cells", both under the "Date" and "Custom" categories... with no luck.
I have even added code which should change the format to dd/mm/yyyy:
My computer's settings are also set up with the dd/mm/yyy format.
Can any one give me other suggestions?
Thanks in advance.
I'm currently using a user form with current "UserForm_Activate" settings as follows:
Code:
Private Sub UserForm_Activate()
txtDate.Text = Format(Now(), "dd/mm/yyyy")
Up to this point I'm ok, as the date on the user form defaults to dd/mm/yyyy (e.g. 28/02/2011).
I also have the below code for when the user clicks on the "Enter" button on the user form, which transfers the date from the form to the spreadsheet:
Code:
Sheets("PrimeCo Home").Select
Range("W1").Select
Selection.Value = txtGMT.Value
Selection.Offset(1, 0).Value = txtDate.Value
Selection.Offset(2, 0).Value = txtClientName.Value
The date does get transfered to the spreadsheet, but in the mm/dd/yyyy format (e.g. 02/28/2011).
I've changed the format under "Format Cells", both under the "Date" and "Custom" categories... with no luck.
I have even added code which should change the format to dd/mm/yyyy:
Code:
Range("W2").Select
Selection.NumberFormat = "dd/mm/yyyy"
My computer's settings are also set up with the dd/mm/yyy format.
Can any one give me other suggestions?
Thanks in advance.