Column C has time (formatted as text in the form of a sheet that will be exported as csv) in the format HH: mm: ss.
Values ββC1, C2, C3 refer to the time 09:15:00, 09:16:00, 09:17:00 respectively until 15:29:00
It is NECESSARY TO REPLACE ONLY the last part of ": 00" with ": 59"
--- --- CATCH Column C will display values ββsuch as 10:00:00 or 11:00:00 or 12:00:00
This means that directly replacing β: 00β with β: 59β will damage the exact 10 hours, 11 hours, etc.
Column C will be filled with thousands of such data points. My logic below does not work, I think:
{
Dim secrep As String LastRow = Cells(Rows.Count, "C").End(xlUp).Row Secsz = Range("C1:C" & LastRow).Select seczero = Right(Secsz, 2) secrep = Replace(Secsz, ":00", ":59")
}
I know this code is wrong, but all I could think of.
a request for help in executing this logic.
EDIT: There was not enough detailed explanation. Even these full hours should be replaced by such as: 10:00:59, 11:00:59, 12:00:59
source share