Villalobos
Active Member
Hello,
I would need your help to solve a date format problem. I use the below mentioned code but doesn't work well.
I extract the dates from the ERP in this format : dd.mm.yyyy, and my target to convert into this format: dd/mm/yyyy but I can not do it. My OP system use this date format also: dd/mm/yyyy.
I have attached the sample file.
Thank you in advance the help!
I would need your help to solve a date format problem. I use the below mentioned code but doesn't work well.
Code:
Option Explicit
Sub Test()
Dim OutputSheet1 As Worksheet
Dim OutputLastRow1 As Long
Set OutputSheet1 = Worksheets("Calculation")
With OutputSheet1
OutputLastRow1 = .Cells(.Rows.Count, "E").End(xlUp).Row
.Range("F9:F" & OutputLastRow1).Replace What:=".", Replacement:="/"
.Range("F9:F" & OutputLastRow1).NumberFormat = "dd/mm/yyyy"
End With
End Sub
I extract the dates from the ERP in this format : dd.mm.yyyy, and my target to convert into this format: dd/mm/yyyy but I can not do it. My OP system use this date format also: dd/mm/yyyy.
I have attached the sample file.
Thank you in advance the help!