原来是只对相邻两行更换
原以为要把全部内容读入数组再写出来
THANK efan2000
也许程序这样更好点
Private Sub CommandButton9_Click() '向上 w = ListBox2: v = ListBox2.ListIndex If v = 0 Then Exit Sub ListBox2.List(v) = ListBox2.List(v - 1) ListBox2.List(v - 1) = w ListBox2.ListIndex = (v - 1)
End Sub