hi.
assuming A1 houses the date, try this:
![]()
Sub split_date_time() Range("B1").Value = Format(Int(Range("A1")), "dd/mm/yyyy") Range("C1").Value = Format((Range("A1") - Int(Range("A1"))), "hh:mm:ss") End Sub
hi.
assuming A1 houses the date, try this:
![]()
Sub split_date_time() Range("B1").Value = Format(Int(Range("A1")), "dd/mm/yyyy") Range("C1").Value = Format((Range("A1") - Int(Range("A1"))), "hh:mm:ss") End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks