Change Cell Format to Date (Macro)
The below macro will set the format of a selected range using a VBA macro in Excel ‘This will select all cells in the column E Columns("E:E").Select Selection.NumberFormat = "dd/mm/yyyy" ‘This will select all cells in the range E1 to E10 Range("E1:E10").Select Selection.NumberFormat = "dd/mm/yyyy" ‘This will select all cells in the Rows 1 to 10 Rows("1:10").Select Selection.NumberFormat = "dd/mm/yyyy"