DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Bir sayfadaki verileri ListBox a aldığımız da ListBoxta bu verileri alfabetik sıralanmasını nasıl yapabilirim
Private Sub CommandButton1_Click()
For i = 0 To ListBox1.ListCount - 1
For j = i + 1 To ListBox1.ListCount - 1
If ListBox1.List(i) > ListBox1.List(j) Then
x = ListBox1.List(i)
ListBox1.List(i) = ListBox1.List(j)
ListBox1.List(j) = x
End If
Next j
Next i
End Sub
'----------------------------
Private Sub UserForm_Initialize()
ListBox1.List = Range("B2:B100").Value
End Sub