Sub removeTime() Dim Rng As Range For Each Rng In Selection If IsDate(Rng) = True Then Rng.Value = VBA.Int(Rng.Value) End If Next Selection.NumberFormat = "dd-mmm-yy" End Sub
Macro Code to Remove Time from Date in excel
If you have time with the date and you want to remove it then you can use this code.