vbanewbie68
Board Regular
- Joined
- Oct 16, 2021
- Messages
- 171
- Office Version
- 365
- Platform
- Windows
- MacOS
Hi
Please could you show me how to change from US date to United Kingdom Date like this dd/mm/yyyy?
Thank you in advance
Best regards
V
Sub Add_Rows_Data()
LastRow = Imprt.Cells(1, 1).End(xlDown).Row
DatePaymentMade = WorksheetFunction.Match("DatePaymentMade", Imprt.Cells(1, 1).EntireRow, 0)
For x = 2 To LastRow
Imprt.Cells(x, DatePaymentMade).Value = DateValue(Cells(x, DatePaymentMade).Text) 'Date format
Next x
End Sub
Please could you show me how to change from US date to United Kingdom Date like this dd/mm/yyyy?
Thank you in advance
Best regards
V
Sub Add_Rows_Data()
LastRow = Imprt.Cells(1, 1).End(xlDown).Row
DatePaymentMade = WorksheetFunction.Match("DatePaymentMade", Imprt.Cells(1, 1).EntireRow, 0)
For x = 2 To LastRow
Imprt.Cells(x, DatePaymentMade).Value = DateValue(Cells(x, DatePaymentMade).Text) 'Date format
Next x
End Sub