- Katılım
- 28 Tem 2022
- Mesajlar
- 370
- Excel Versiyonu
- Excel 2016
- Excel Sürümü
- 64 Bit
- Excel Dili
- Türkçe
Hayırlı sabahlar kıymetli hocalarım ve sayfa takipçileri 

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Column = 7 Then ' G Sütunu
For x = 2 To Range("G" & Rows.Count).End(xlUp).Row
If WorksheetFunction.CountIf(Range("G2:G" & Range("G" & Rows.Count).End(xlUp).Row), Cells(x, "G")) > 1 Then
MsgBox Cells(x, "G").Address & " Hücresinde aynı ürün var." & vbNewLine & "Yeni kayıt silinecektir!", vbInformation, "ExcelDestek.com"
Target.Value = Empty
Exit Sub
End If
Next
End If
If Target.Column = 11 Then ' K Sütunu
For x = 2 To Range("K" & Rows.Count).End(xlUp).Row
If WorksheetFunction.CountIf(Range("K2:K" & Range("K" & Rows.Count).End(xlUp).Row), Cells(x, "K")) > 1 Then
MsgBox Cells(x, "K").Address & " Hücresinde aynı ürün var." & vbNewLine & "Yeni kayıt silinecektir!", vbInformation, "ExcelDestek.com"
Target.Value = Empty
Exit Sub
End If
Next
End If
End Sub
End Sub
Ekli dosyalar
Çalışma Sayfasını Başka Kitaba Kopyalama
|
|
Sekmeleri Başka Bir Sayfaya Makro ile Alma
|
|
Verileri Başka Bir Klasördeki Dosyaya Yazdırma
|
|
Başlangıç Değerine Göre Satırları Başka Sayfaya Kopyalamak
|
|
Verileri Başka Bir Excel Sayfasından Çekme
|