title: Create ListBox MsgBox with Selected Items
body: <p>I have a listbox control that is suppose to populate a list of the items selected into a MsgBox, but I keep getting an error code when I run it. </p>
  
  <p><strong>ERROR: Compile error: Method or data member not found</strong></p>
  
  <p>What am I doing wrong?</p>
  
  <pre><code>Private Sub ctrSend_Click()
      Dim msg As String
      Dim i As Integer
      Dim lstMsg As ListBox
  
      If lstShipping.ListIndex = -1 Then
          msg = "Nothing"
      Else
          msg = ""
          For i = 0 To lstShipping.ListCount - 1
              If lstShipping.Selected(i) Then _
                  msg = msg &amp; lstMsg.List(i) &amp; vbCrLf
          Next i
      End If
  
      MsgBox "You selected: " &amp; vbCrLf &amp; msg, vbOKOnly, "Selected BIN"
      Unload Me
  End Sub
  </code></pre>