Here's some simple code that will delete any rows with 'Result' in column A
Application.ScreenUpdating = False
With ActiveWorkbook
With .ActiveSheet
.Rows(1).Insert
.Range("A1").Value = "Test"
.Columns("A:A").AutoFilter Field:=1, Criteria1:="result"
.Cells.SpecialCells(xlCellTypeVisible).EntireRow.Delete
End With
End With
Application.ScreenUpdating = True
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
Amber said:
In my spreadsheet I have yellow lines that say result. I want to delete
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.