Sub US_Date_Format()
Application.ScreenUpdating = False
With ActiveSheet
y_max = .UsedRange.Rows.Count
x_max = .UsedRange.Columns.Count
For y = 1 To y_max
For x = 1 To x_max
If IsDate(.Cells(y, x)) Then .Cells(y, x).NumberFormat = "[$-409]dd/mmm/yy;@"
Next x
Next y
End With
Application.ScreenUpdating = True
End Sub
Hi DeepakShort version of the said approach!
Code:Sub d_change() Dim r As Range For Each r In Sheet1.UsedRange If IsDate(r) Then r.NumberFormat = "[$-409]dd/mmm/yy;@" Next End Sub
It's due to regional setting in both PC are different.