A
Amy
Hi, I am creating a multi-pick listbox in a userform. The listbox has names
in alphabetical order. I am using the code below to import selected items
into the Word doc. Why does the list of selected items appear in the Word doc
in reverse alpha order? For example, my listbox has 2 choices "Apples" and
"Oranges". If I pick both "Apples" and "Oranges" my Word doc will list the
choices as Oranges and Apples. I'd like the order in the Word doc to be
alphabetical as well. Thanks for any help you can provide!
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
in alphabetical order. I am using the code below to import selected items
into the Word doc. Why does the list of selected items appear in the Word doc
in reverse alpha order? For example, my listbox has 2 choices "Apples" and
"Oranges". If I pick both "Apples" and "Oranges" my Word doc will list the
choices as Oranges and Apples. I'd like the order in the Word doc to be
alphabetical as well. Thanks for any help you can provide!
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