merhaba
aşağıdaki kodda xlDescending komutunu nereye eklemeliyim ki listede isimlerin karşılığındaki büyük rakamdan aşağıya doğru sıralama yapsın
Private Sub CommandButton1_Click()
If ComboBox1.Value <> "" Then
ListBox1.Clear
ListBox1.ColumnCount = 2
For i = 35 To Sheets.Count
If Sheets(i).Name <> "sayfa 1" Then
say = ListBox1.ListCount
ListBox1.AddItem
ListBox1.List(say, 0) = Sheets(i).Name
ListBox1.List(say, 1) = Sheets(i).Cells(3, ComboBox1.ListIndex + 1)
End If
Next
End If
End Sub


aşağıdaki kodda xlDescending komutunu nereye eklemeliyim ki listede isimlerin karşılığındaki büyük rakamdan aşağıya doğru sıralama yapsın
Private Sub CommandButton1_Click()
If ComboBox1.Value <> "" Then
ListBox1.Clear
ListBox1.ColumnCount = 2
For i = 35 To Sheets.Count
If Sheets(i).Name <> "sayfa 1" Then
say = ListBox1.ListCount
ListBox1.AddItem
ListBox1.List(say, 0) = Sheets(i).Name
ListBox1.List(say, 1) = Sheets(i).Cells(3, ComboBox1.ListIndex + 1)
End If
Next
End If
End Sub


