I trying to loop through a listbox and retrieve e-mail addresses. I get the addresses just fine what I’m having a problem with is. If there are ten addresses I’m only pulling 9 addresses and if there is only one address it does not do anything.

What am I doing wrong?

VB Code:
  1. Dim n As Integer
  2.         Dim x As Integer
  3.        
  4. 'On Error GoTo err:
  5.  
  6.         n = 0
  7.         x = lstSelected.ListCount - 1
  8.    
  9.     Do Until n = x
  10.         lstSelected.ListIndex = n
  11.         adNM = InStr(1, lstSelected.Text, " - ")
  12.         adID = Right$(lstSelected.Text, Len(lstSelected.Text) - adNM - 1)
  13.         Addstr = adID
  14.         MsgBox adID
  15.         'Call SendBroadcast
  16.         n = n + 1
  17.    Loop