I am trying to find a way to quickly filter and cut range of cell's to another sheet
to be precise :
Private Sub CommandButton1_Click()
Dim rng As Range, cell As Range
Set rng = Range("a2:a100")
For Each cell In rng
If Sheet1.Range("a2").Offset(1) = "DE" Then
Sheet1.Range("b2:f2").Cut Sheet2.Range("b2:f2")
End If
Next cell
End Sub
i know that this code is just limited to Cell(A2).
I need my code to go trough Range ("a2:a100") and if it contains value Exp. "DE" to cut range(b2:f2) to the next sheet
EXP.
If cell a2 contains "DE" it need's to cut range ("b2:f2") If cell a5 contains "DE" it need's to cut range ("b5:f5") exc...