palaeontology
Active Member
- Joined
- May 12, 2017
- Messages
- 444
- Office Version
- 2016
- Platform
- Windows
I use the following code to add a date into the first available cell in column S
How could I adjust the code if I want to clear the lowest cell in column S that has a date in it ?
Code:
Private Sub Skip_A_Student_Click() Dim Cnt As Long
Dim NxtRw As Long
NxtRw = Cells(Rows.Count, "S").End(xlUp).Offset(1).Row
Cnt = WorksheetFunction.Count(Range("S2:S" & NxtRw))
Range("S" & NxtRw).Value = Date
End Sub
How could I adjust the code if I want to clear the lowest cell in column S that has a date in it ?