Hi
I have a user form which a user can select dates from a calendar, when its writing the dates back to the worksheet it is intermittently changing the date format back to US, along with this I am calculating the numbers of days between the 2 dates, which is screwing the calculation
Can anybody point me the right direction to cure this
Using excel 2010, all options set up to UK English
This is the code I'm using
[VBA]
.cells(IRow, "N").Value = CDate(Me.TxtJCDate.Value)
[/VBA]
Calculation
[VBA]
.cells(IRow, "DD").Value = DateValue(Me.TxtLCDate.Value) - DateValue(Me.TxtJCDate.Value)
[/VBA]
And as a last resort
[VBA]
Private Sub TxtJCDate_Change()
Me.TxtJCDate.Value = Format(Me.TxtJCDate.Value, "DD/MM/YYYY")
End Sub
[/VBA]
In debug mode the format is correct (UK) from the calendar
And it still converts the dates back to US format ???????
Rob