Hi!
I'm having some trouble with this code. I want vba to delete every row where a cell meets a certain criteria (let's say "House"). But not the entire row, only between columns "A" and "N" for example.
This is what I managed to conquer so far, but that only deletes the specific cell:
[pre]
[/pre]
Thanks!!
I'm having some trouble with this code. I want vba to delete every row where a cell meets a certain criteria (let's say "House"). But not the entire row, only between columns "A" and "N" for example.
This is what I managed to conquer so far, but that only deletes the specific cell:
[pre]
Code:
Sub Test()
For Each Cell In Sheet1.[A1:N30000]
If Cell.Value = "HOUSE" Then Cell.ClearContents
Next Cell
End Sub
Thanks!!