lambuhere1
Registered User.
- Local time
- Today, 21:49
- Joined
- Nov 19, 2001
- Messages
- 28
Hi all
I am trying to display the selection made by the user in the list box. Its a Multi Selection List Box. I am trying to display to the user that he/she had selected this, this etc, depending on his/her selection in the list. The following code displays the selection individually. Can you think about displaying all the selection in a single msgbox?
Private Sub CommandButton1_Click()
Dim intloopindex
For intloopindex = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(intloopindex) Then
MsgBox " U have selected " & ListBox1.List(intloopindex)
End If
Next intloopindex
End Sub
I was thinking..... Can we include any loop inside the Message Box? Just a thought.
Thanks for your time.
I am trying to display the selection made by the user in the list box. Its a Multi Selection List Box. I am trying to display to the user that he/she had selected this, this etc, depending on his/her selection in the list. The following code displays the selection individually. Can you think about displaying all the selection in a single msgbox?
Private Sub CommandButton1_Click()
Dim intloopindex
For intloopindex = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(intloopindex) Then
MsgBox " U have selected " & ListBox1.List(intloopindex)
End If
Next intloopindex
End Sub
I was thinking..... Can we include any loop inside the Message Box? Just a thought.
Thanks for your time.