DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Public WithEvents Check As MSForms.CheckBox
Private Sub Check_Click()
Dim sut As Byte, i As Long, k As Range, adr As String
sut = Replace(Check.Name, "CheckBox", "")
If Check.Value = False Then
Range(Cells(5, sut + 2), Cells(65536, sut + 2)).ClearContents
Else
For i = 5 To Cells(65536, "B").End(xlUp).Row
Set k = Sheets("Hatirlat").Range("F2:F65536").Find(Cells(i, "B").Value _
, , xlValues, xlWhole)
If Not k Is Nothing Then
adr = k.Address
Do
If CStr(Sheets("Hatirlat").Cells(k.Row, "H").Value) = Left(Range("A3").Value, 4) _
And UCase(Replace(Replace(Sheets("Hatirlat").Cells(k.Row, "I").Value, "ı", "I"), "i", "İ")) _
= Replace(Replace(Check.Tag, "i", "İ"), "ı", "I") Then
Cells(i, sut + 2).Value = Cells(i, sut + 2).Value + Sheets("Hatirlat").Cells(k.Row, "C").Value
End If
Set k = Sheets("Hatirlat").Range("F2:F65536").FindNext(k)
Loop While Not k Is Nothing And k.Address <> adr
End If
Next i
End If
End Sub
Rica ederim.Hocam süpersin...eline sağlık..yıllarda ayarlanmış harika...çok teşekkürler
Public WithEvents Check As MSForms.CheckBox
Private Sub Check_Click()
Dim sut As Byte, i As Long, k As Range, adr As String
Dim yapildi As String
sut = Replace(Check.Name, "CheckBox", "")
If Check.Value = False Then
Range(Cells(5, sut + 2), Cells(65536, sut + 2)).ClearContents
Else
For i = 5 To Cells(65536, "B").End(xlUp).Row
Set k = Sheets("Hatirlat").Range("F2:F65536").Find(Cells(i, "B").Value _
, , xlValues, xlWhole)
If Not k Is Nothing Then
adr = k.Address
Do
If CStr(Sheets("Hatirlat").Cells(k.Row, "H").Value) = Left(Range("A3").Value, 4) _
And UCase(Replace(Replace(Sheets("Hatirlat").Cells(k.Row, "I").Value, "ı", "I"), "i", "İ")) _
= Replace(Replace(Check.Tag, "i", "İ"), "ı", "I") Then
If UserForm11.OptionButton1.Value = True Then
yapildi = "YAPILDI"
ElseIf UserForm11.OptionButton2.Value = True Then
yapildi = "YAPILMADI"
ElseIf UserForm11.OptionButton3.Value = True Then
yapildi = Sheets("Hatirlat").Cells(k.Row, "E").Value
End If
If Sheets("Hatirlat").Cells(k.Row, "E").Value = yapildi And _
Sheets("Hatirlat").Cells(k.Row, "H").Value = CInt(UserForm11.ComboBox1.Value) Then
Cells(i, sut + 2).Value = Cells(i, sut + 2).Value + Sheets("Hatirlat").Cells(k.Row, "C").Value
End If
End If
Set k = Sheets("Hatirlat").Range("F2:F65536").FindNext(k)
Loop While Not k Is Nothing And k.Address <> adr
End If
Next i
End If
End Sub
Rica ederim.Hocam süpersin..çok makbule geçti...Allah,sizinde varsa her türlü sıkıntınızı gidersin inş.ferahlık ve esenlikler diliyorum