All dates in Excel include time: date and time. It is not possible to save only a date or time in a cell only. The reason is that Excel stores them as numbers. Everything before the decimal point is the date and something after the decimal point is the time. Thus, even if you put the number 42000 in the cell (without anything after the decimal point) and changed the format of this cell to date, the value will remain December 27, 2014 (42,000 days after December 31, 1899) with the estimated time zero = 00:00:00 in the morning.
Since all numbers can have something after the decimal point, all dates have time in Excel and all times have dates.
The only thing you can do is: format the cell to display only the date part or the time part, or both. So all you have to do is hide the time.
If you want to change all dates to zero after the decimal point, you will have to iterate over the numbers and change all the values ββto INT values.
For intColumn = 1 to 1000 If Sheet1.Cells(1, intColumn).Value2 = vbNullString then Exit For Sheet1.Cells(1, intColumn).Value2 = Int(Sheet1.Cells(1, intColumn).Value2) ' Do not use CInt but Int only! next intColumn
Ralph source share