Are you trying to add all names to the listbox??? If that's the case, here's what you can do:
Code:
Private Sub Command1_Click()
Dim i As Integer
Dim objMail As New Outlook.Application
Dim objAddList As Outlook.AddressList
Dim objNameSpace As Outlook.NameSpace
Dim objAddEntCol As Outlook.AddressEntries
Dim objAddEntry As Outlook.AddressEntry
Set objNameSpace = objMail.GetNamespace("MAPI")
Set objAddList = objNameSpace.AddressLists("Contacts")
Set objAddEntCol = objAddList.AddressEntries
objAddEntCol.Sort
Set objAddEntry = objAddEntCol.GetFirst
Do Until objAddEntry Is Nothing
List1.AddItem objAddEntry.Name
Set objAddEntry = objAddEntCol.GetNext
Loop
Set objAddEntCol = Nothing
Set objAddEntry = Nothing
Set objAddList = Nothing
Set objList = Nothing
Set objNameSpace = Nothing
End Sub
[Edited by Serge on 11-21-2000 at 06:32 PM]