Anyone know what the easiest way to do this is.? I am hoping there is a faster more efficient way to search for ce.Offset(,5) in these two ranges and delete the rows without doing the whole ce2 & ce3 For Each Loop. Thanks!
Dim ce as Range
Dim ce2 as Range
Dim ce3 as Range
For each ce in Range("include")
If ce = "x" Then
Sheets(Sheet1).Activate
For each ce2 in Range ("z6:z50000")
If ce2 = ce.Offset(,5) Then
ce2.EntireRow.Delete
End If
Next ce2
Sheets(Sheet2).Activate
For each ce3 in Range ("z6:z50000")
If ce3 = ce.Offset(,5) Then
ce3.EntireRow.Delete
End If
Next ce3
End If
Next ce
Dim ce as Range
Dim ce2 as Range
Dim ce3 as Range
For each ce in Range("include")
If ce = "x" Then
Sheets(Sheet1).Activate
For each ce2 in Range ("z6:z50000")
If ce2 = ce.Offset(,5) Then
ce2.EntireRow.Delete
End If
Next ce2
Sheets(Sheet2).Activate
For each ce3 in Range ("z6:z50000")
If ce3 = ce.Offset(,5) Then
ce3.EntireRow.Delete
End If
Next ce3
End If
Next ce