Here is complete, working, code
Code:
Private Sub cmdDown_Click()
Dim intIndex As Integer
Dim strValue As String
For intIndex = 0 To List1.ListCount - 2
If List1.SelCount > 1 Then
MsgBox "Please choose only one entry at a time to move", vbExclamation, "Too many items selected"
Exit Sub
End If
If List1.Selected(intIndex) = True Then
strValue = List1.List(intIndex)
List1.RemoveItem intIndex
List1.AddItem strValue, intIndex + 1
List1.ListIndex = intIndex + 1
Exit For
End If
Next
End Sub
Private Sub cmdUp_Click()
Dim intIndex As Integer
Dim strValue As String
For intIndex = 1 To List1.ListCount - 1
If List1.SelCount > 1 Then
MsgBox "Please choose only one entry at a time to move", vbExclamation, "Too many items selected"
Exit Sub
End If
If List1.Selected(intIndex) = True Then
strValue = List1.List(intIndex)
List1.RemoveItem intIndex
List1.AddItem strValue, intIndex - 1
List1.ListIndex = intIndex - 1
Exit For
End If
Next
End Sub