Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88066

US formatted dates from userform

$
0
0

I have a user form where someone inputs, among other things, the date that they opened something (may not be today's date). I then have a bit of code that dumps this input onto a sheet to add to a record, but it is inputting it in US format, not UK.

Today, for example, I've input a test on there and have typed 04/02/2020 - 4th Feb 2020 - but the sheet it's input on to has it recorded as 02/04/2020.

Here is the code that inputs that date into the sheet. Is there anything I can add in to this that would put it into the proper way of writing a date? Ideally, it'd be great if I could switch a setting in the user form properties to change this, but I can't find anything in there at all!

Dim Row As Long
Row = Sheets("Inputs").Range("E13").Value

If DateOpenAnswerBox = "" Then
Else
Worksheets("Recording Sheet").Range("F"& Row).Value = Me.DateOpenAnswerBox.Value
End If

Any advice would be amazing :)


Viewing all articles
Browse latest Browse all 88066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>