Macro for deleting rows
"benxprezoise" wrote in message
...
I can't make the formula work.
This is how my worksheet looks like and lets say I name the range as
SAMPLE.
A B C D
1 J 01/20/05 123
2 J 01/20/05 123
3 01/20/05 123
. J 0122 1223
.
.
500 J
I want to delete the rows without J's in column A. Also I need the formula
to start looking in Row 1.
You originally said for rows 800 to 2400, now you are saying starting at 1.
Try this
iLastRow = Cells(Rows.Count,"B").End(xlUp).Row
Range("A1:A" & iLastRow).SpecialCells(xlCellTypeBlanks).EntireRow .Delete
|