Sub dd()
Dim x As Integer
Dim i As Integer
For i = 1 To 6
For Each hucre In Range("a1:a6")
x = Len(hucre)
If Mid(hucre, x, 1) = "a" Or Mid(hucre, x, 1) = "b" Then
Rows(i).Delete
Next hucre
Next i
End Sub
bu kod ile içinde "a" ve "b" harflerini içeren hücrelerin ulundugu satırları silmek istedim.verdiği hata "for without next " nasıl çalıştırabilirim.
herkese teşekkürler şimdiden...
Dim x As Integer
Dim i As Integer
For i = 1 To 6
For Each hucre In Range("a1:a6")
x = Len(hucre)
If Mid(hucre, x, 1) = "a" Or Mid(hucre, x, 1) = "b" Then
Rows(i).Delete
Next hucre
Next i
End Sub
bu kod ile içinde "a" ve "b" harflerini içeren hücrelerin ulundugu satırları silmek istedim.verdiği hata "for without next " nasıl çalıştırabilirim.
herkese teşekkürler şimdiden...