Created
September 4, 2013 03:30
-
-
Save ijd65/6432482 to your computer and use it in GitHub Desktop.
Delete Row based on multiple criteria
Change Sheet(1) to required Sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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