How's this work for you?
Public Sub twills()
Dim lngLastRow As Long
Dim StartDaylight As Date
Dim EndDaylight As Date
StartDaylight = CDate(InputBox("Enter the date of daylight savings start.", "Daylight Savings Start Date"))
EndDaylight = CDate(InputBox("Enter the date of daylight savings end.", "Daylight Savings End Date"))
For i = 2 To Sheets.Count
lngLastRow = Sheets(i).Cells(Rows.Count, 1).End(xlUp).Row
For j = 5 To lngLastRow
If Sheets(i).Cells(j, 1).Value >= StartDaylight Then
If Sheets(i).Cells(j, 1).Value <= EndDaylight Then
Sheets(i).Cells(j, 1).Value = Sheets(i).Cells(j, 1).Value - 1 / 24
End If
End If
Next j
Next i
End Sub
Bookmarks