cem yılmaz
Altın Üye
- Katılım
- 23 Aralık 2006
- Mesajlar
- 359
- Excel Vers. ve Dili
- Office365 TÜRKÇE
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
ListBox1.Clear
Dim hcr As Range
For a = 5 To [a65536].End(3).Row
If Cells(a, 1) = [COLOR=red]Val[/COLOR](ComboBox1.Value) Then
Set hcr = Cells(a, 1)
If OptionButton1.Value = True Then
If hcr.Offset(0, 2) <> "" Then ListBox1.AddItem hcr.Offset(0, 1)
TextBox1.Value = ListBox1.ListCount
ElseIf OptionButton2.Value = True Then
If hcr.Offset(0, 2) = "" Then ListBox1.AddItem hcr.Offset(0, 1)
TextBox1.Value = ListBox1.ListCount
End If
End If
Next
End Sub
Kod:If Cells(a, 1) = [COLOR=red]Val[/COLOR](ComboBox1.Value) Then