Does anyone know how to the change the date format in a ComboBox on a form when the dates are entered from a worksheets range into an array.
I've tried the format command but it doesn't work in my syntax.
The code which enters the dates is as follows:
Public Sub cboCDate_Enter()
' Routine to populate Course Dates
Sheets("Course_DB").Activate
Dim x&
With Sheets("Course_DB")
For x = 2 To .Cells(Rows.Count, "V").End(xlUp).Row
cboCDate.AddItem (.Range("V" & x).Value)
Next x
End With
cboCDate.Value = Format(cboCDate, "dd/mm/yyyy")
End Sub
I've tried the format command but it doesn't work in my syntax.
The code which enters the dates is as follows:
Public Sub cboCDate_Enter()
' Routine to populate Course Dates
Sheets("Course_DB").Activate
Dim x&
With Sheets("Course_DB")
For x = 2 To .Cells(Rows.Count, "V").End(xlUp).Row
cboCDate.AddItem (.Range("V" & x).Value)
Next x
End With
cboCDate.Value = Format(cboCDate, "dd/mm/yyyy")
End Sub