hi folks,
i have a macro which deletes the entire row when in column A is a specific value, in my case 555555.
can anybody please tell me how i can add specific values in the macro.
know the macro is deleting rows when in column A is value 555555, no i want
to delete also rows with 666666, and 888888. is there a possibility to "refresh" the macro
when i have to add new sped. values?
here is the macro:
Sub myDeleteRows()
Dim MyCol As String
Dim i As Integer
For i = 1 To Range("A" & "65536").End(xlUp).Row Step 1
If Application.WorksheetFunction.CountIf(Range("A" & i & ":AZ" & i), "555555") > 0 Then
Range("A" & i).EntireRow.Delete
End If
Next i
End Sub
thx in advance!!
mandura
Bookmarks