I have an excel spreadsheet that will delete rows of information for dates before today's date, preferably automatically. I have the VBA codes (I'm trying to decide which of these two I prefer) and I was wondering if one of you amazing people can translate this to work with Google Spreadsheets.
Dim i As Integer
For i = 1 To ActiveSheet.UsedRange.Rows.Count
If *Date_is_Passed* Then
ActiveSheet.Rows(rowToDelete).Delete
End If
Next i
OR
Sub deleterows()
lastrow = Cells(Rows.Count, 4).End(xlUp).Row
For i = lastrow To 2 Step -1
If Cells(i, 4).Value2 < Date Then Rows(i).EntireRow.Delete
Next i
End Sub
Thanks and virtual cookies.