DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub ÇIKANLARI_SİL()
Dim S1, S2, X, BUL
Set S1 = Sheets("veri")
Set S2 = Sheets("çıkış")
For X = 6 To S2.Cells(Rows.Count, "B").End(3).Row
Set BUL = S1.Range("B:B").Find(S2.Cells(X, "B"), , , xlWhole)
If Not BUL Is Nothing Then
S1.Range("B" & BUL.Row & ":E" & BUL.Row).Delete xlShiftUp
End If
Next
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Merhaba,
Aşağıdaki kodu deneyiniz.
Kod:Sub ÇIKANLARI_SİL() Dim S1, S2, X, BUL Set S1 = Sheets("veri") Set S2 = Sheets("çıkış") For X = 6 To S2.Cells(Rows.Count, "B").End(3).Row Set BUL = S1.Range("B:B").Find(S2.Cells(X, "B"), , , xlWhole) If Not BUL Is Nothing Then S1.Range("B" & BUL.Row & ":E" & BUL.Row).Delete xlShiftUp End If Next MsgBox "İşleminiz tamamlanmıştır.", vbInformation End Sub
S1.Range("B" & BUL.Row & ":E" & BUL.Row).Delete xlShiftUp
BUL.EntireRow.Delete
Merhaba,
B:E aralığını siliyor.
Tüm satırı silmesini istiyorsanız aşağıdaki satırı;
Kod:S1.Range("B" & BUL.Row & ":E" & BUL.Row).Delete xlShiftUp
Bununla değiştirin;
Kod:BUL.EntireRow.Delete
Merhaba,
Bir önceki mesajımda kırmızı renkli satırı kod içinde bulup silin ve yerine mavi renkli satırı ekleyin.