I have code to convert a date serial into UK Formatted short dates.
I am calling the module via a C# program and I am getting an American formatted date.
Application.ScreenUpdating = False
Dim x As Workbook
Set x = ActiveWorkbook
Dim WB As Workbook
Workbooks.Open "\\Csdatg04\psproject\Robot\Project Preload\Transactions\Robot WIP\Transactions.csv"
Set WB = ActiveWorkbook
WB.Worksheets(1).Range("J:J").EntireColumn.NumberFormat = "DD/MM/YYYY"
Application.DisplayAlerts = False
x.Save
WB.Save
WB.Close
How can I force the format to UK dates or alternatively check the dates are formatted in the UK format and, if not, convert the outcome from American to UK?