Hi Bob,
Thanks, worked a charm!
On Sep 24, 4:06*pm, "Bob Phillips" <Bob...@somewhere.com> wrote:
> Sub delete_unusedrows()
> Dim i As Long
>
> * * With Selection
>
> * * * * For i = .Rows.Count + .Cells(1, 1).Row - 1 To .Cells(1,1).Row
> Step -1
>
> * * * * * * If Cells(i, .Column - 6).Value = "R" Or Cells(i, .Column -
> 6).Value = "E" Then
>
> * * * * * * * * If Cells(i, .Column) = 0 Then
>
> * * * * * * * * * * Rows(i).Delete
> * * * * * * * * End If
> * * * * * * End If
> * * * * Next i
> * * End With
> *End Sub
>
> --
> __________________________________
> HTH
>
> Bob
>
|