- Katılım
- 11 Şubat 2016
- Mesajlar
- 199
- Excel Vers. ve Dili
- 2013
D6 : D205 sütununa mükerrer kayıt girişini engellemek istiyorum nasıl yapabilirim.
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_Change(ByVal Target As Range)
Dim adr As Variant
If Intersect(Target, Range("d6:d205")) Is Nothing Then Exit Sub
If Target.Cells.Count > 1 Then Exit Sub
If WorksheetFunction.CountIf(Range("D6:D205" & [D205].End(3).Row), Target) > 0 Then
adr = Range("D6:D205" & [d205].End(3).Row).Find(Target, , , 1).Address
MsgBox "Girdiğiniz veri " & Mid(adr, 2, 1) & Mid(adr, 4, 3) & " nolu hücrede girilmiştir.", vbInformation
Target = ""
Else
Exit Sub
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
mm1 = ActiveCell.Row * 1
For MSTF = 2 To mm1 - 1
If Cells(mm1, "F") <> "" Then
If Cells(MSTF, "F") = Cells(mm1, "F") Then
MsgBox "Bu kişi daha önce " & MSTF & " F hücresine girilmiştir"
Cells(mm1, "F") = ""
Exit Sub
End If
End If
Next
End Sub
Mustafa hocam teşeklür ederim pazartezi bakacağım.