Sub FormatTime()
For Each sh In ActiveWorkbook.Sheets
sh.Activate
If sh.Name = "Current" Or sh.Name = "Import" Then
For Each c In Range(Range("H2"), Range("I" & Application.Max(2, Range("I" & Cells.Rows.Count).End(xlUp).Row)))
Debug.Print c.Address
If Not IsDate(c) And c <> "" Then
arrData = Split(c.Text, "-")
arrTime = Split(Right(arrData(2), 8), ":")
theDate = DateSerial(arrData(0), arrData(1), Left(arrData(2), 2))
theTime = TimeSerial(arrTime(0), arrTime(1), arrTime(2))
theDateTime = theDate + theTime
c.Value = theDateTime
End If
c.NumberFormat = "mm\/dd\/yyyy hh:mm"
Next
End If
Next
compare
End Sub