A
Amy
Hi, I am creating a listbox with names in alphabetical order. It is a
multi-pick listbox. I want to import the selected names into the Word doc. I
have this code. But the names appear in reverse alpha order in the Word doc.
What do I need to change to ensure that names appear in the Word doc in alpha
order, just like the listbox? Thanks for any help!
For i = 1 To Team.ListCount
'..and check whether each is selected
If Team.Selected(i - 1) Then
' If selected, display item in msgbox
ActiveDocument.Bookmarks("Team").Range.InsertBefore Team.List(i - 1)
& " "
End If
Next
multi-pick listbox. I want to import the selected names into the Word doc. I
have this code. But the names appear in reverse alpha order in the Word doc.
What do I need to change to ensure that names appear in the Word doc in alpha
order, just like the listbox? Thanks for any help!
For i = 1 To Team.ListCount
'..and check whether each is selected
If Team.Selected(i - 1) Then
' If selected, display item in msgbox
ActiveDocument.Bookmarks("Team").Range.InsertBefore Team.List(i - 1)
& " "
End If
Next