Skip to content

Instantly share code, notes, and snippets.

@ijd65
Created September 4, 2013 03:30
Show Gist options
  • Save ijd65/6432482 to your computer and use it in GitHub Desktop.
Save ijd65/6432482 to your computer and use it in GitHub Desktop.
Delete Row based on multiple criteria Change Sheet(1) to required Sheet
Sub DeleteRows()
Dim x As Long
With Sheets(1)
For x = .UsedRange.Rows.Count To 2 Step -1
If .Cells(x, 1) < 0.2 And .Cells(x, 2) > 0.3 And .Cells(x, 3) > 10 Then
.Rows(x).Delete
End If
Next
End With
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment