- Katılım
- 12 Mayıs 2016
- Mesajlar
- 386
- Excel Vers. ve Dili
- Ofis 2019- 32 Bit - Türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub Icerik_Temizle()
Dim Veri As Range, Say As Long
For Each Veri In Range("D4:D" & Cells(Rows.Count, "D").End(3).Row)
If Veri.Value = "4336532300" Then
Veri.Offset(0, -1).Resize(1, 3).ClearContents
Veri.Offset(0, 22).ClearContents
Say = Say + 1
End If
Next
If Say > 0 Then
MsgBox Say & " adet veri silinmiştir.", vbInformation
Else
MsgBox "Aranan veri bulunamadı!", vbExclamation
End If
End Sub
Sub sil()
Dim Bul As Range
Dim Satir As Long
Set Bul = Range("D:D").Find(What:="4336532300", LookIn:=xlFormulas, LookAt:=xlWhole)
If Bul Is Nothing Then
MsgBox "Bulunamadı."
Exit Sub
End If
Satir = Bul.Row
Range("C" & Satir & ":E" & Satir & ", Z" & Satir).Delete xlUp
MsgBox "Silindi."
End Sub