- Katılım
- 22 Mayıs 2009
- Mesajlar
- 1,017
- Excel Vers. ve Dili
- Office 2003
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub ComboBox1_Change()
End Sub
Private Sub ComboBox1_DropButtonClick()
son = Sayfa1.Cells(Rows.Count, 1).End(xlUp).Row
For x = 2 To son
If Sayfa1.Range("a" & x) <> "" Then
If Sayfa1.Range("a" & x) <> Sayfa1.Range("a" & x - 1) Then
Sayfa2.ComboBox1.AddItem Sayfa1.Range("a" & x)
End If
End If
Next
End Sub
Private Sub ComboBox1_GotFocus()
ComboBox1.Clear
End Sub
Private Sub ComboBox2_Change()
End Sub
Private Sub ComboBox2_DropButtonClick()
'On Error Resume Next
son = Sheets("sayfa2").Cells(Rows.Count, 2).End(xlUp).Row
Dim bilinmeyen As Variant
Set combo1dizi = Sheets("sayfa2").Range("a2:a" & son)
x = ComboBox1.Value
For Each bilinmeyen In combo1dizi
If Sayfa1.Range("b" & bilinmeyen.Row) <> "" Then
If x = bilinmeyen Then
Sayfa2.ComboBox2.AddItem Sayfa1.Range("b" & bilinmeyen.Row)
End If
End If
Next
End Sub
Private Sub ComboBox2_GotFocus()
ComboBox2.Clear
End Sub
Private Sub ComboBox3_Change()
End Sub
Private Sub ComboBox3_DropButtonClick()
son = Sheets("sayfa2").Cells(Rows.Count, 2).End(xlUp).Row
Dim bilinmeyen As Variant
Dim yer1 As Range
Dim satırdizi, combo1dizi, combo2dizi As Range
Set combo1dizi = Sheets("sayfa2").Range("a2:a" & son)
Set combo2dizi = Sheets("sayfa2").Range("b2:b" & son)
x = ComboBox1.Value
xto = ComboBox2.Value
For Each bilinmeyen In combo2dizi
If xto = bilinmeyen Then
yer = bilinmeyen.Row
If yer <> Empty Then
sonsutun = Sheets("sayfa2").Cells.SpecialCells(xlCellTypeLastCell).Column
For y = 3 To sonsutun
ComboBox3.AddItem Sheets("sayfa2").Cells(yer, y)
Next
End If
End If
Next
End Sub
Private Sub ComboBox3_GotFocus()
ComboBox3.Clear
End Sub