Mike Zagle
New Member
Hi All, I have been trying to change the format of the date with a vba code since " format cells" is not working for the current purpose. , I have tried to select and replace but it is time consuming with more than 8000 observations with different dates.
```
``` I have tried this but it is not working... I am new to VBA and would like to have a code to convert my date. Thanks
```
Code:
Sub changes()
Dim trial As Variant
Dim base() As String
Dim i As Integer
trial = ActiveSheet.Range("A3").Select
i = ActiveSheet.Range("B3").Select
base = Split(trial, "/")
If Len(base(2)) = 2 Then
i = base(1) & "/" & base(0) & "/" & base(2)
End If
End Sub
Last edited by a moderator: