Paul
1) Mod it the function that
Returns the remainder after number is divided by divisor. The result has the same sign as divisor.
So if you divide 10 by 5, then the remainder is 0. Basically it is a way to determine every 5th row.
2) What you are doing is creating a loop that counts from 1 to ???. The ??? is determined to be the last filled row in column A (
cells(rows.count,1).end(xlup).row
) For every iteration, i increments by 1. This is the default, and you can change the amount it increments by using the step argument. Have a look at the help file on the for loop.
3) I put some numbers into a range on a sheet from A1:A50. Then run the code
Sub aaa()
For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row
If i Mod 5 = 0 Then
Cells(i, 1).EntireRow.ClearContents
End If
Next i
End Sub
It will clear out every 5th row (ie 5,10,15....)
HTH
rylo
Bookmarks