- Katılım
- 2 Mart 2018
- Mesajlar
- 101
- Excel Vers. ve Dili
- excel 2016
Kod:
Dim i As String
i = ListBox1.SelectedIndex
Dim item As String
item = ListBox1.SelectedItem.ToString()
ListBox1.SetSelected(0, True)
If i < ListBox1.Items.Count - 1 Then
ListBox1.Items.RemoveAt(i)
ListBox1.Items.Insert(i + 1, item)
ListBox1.SetSelected(i + 1, True)
End If
Herkese kolay gelsin böyle bir kod ile ListBoxun içerisinde bulunan itemlerde ilk sıradan aşağıya doğru gidebiyorum. Ancak en son iteme geldiğinde kod çalışmayı durduruyor ve ben tekrardan başa sarmasını ve tekrar etmesini istiyorum. Bununla ilgili For Next döngüsü yazmaya çalıştım ancak bir türlü uyduramadım. Yardım ederseniz sevinirim. Şimdiden teşekkürler.




