Is this a custom Outlook form?

You would use the forms designer and add a listbox. To populate it you would
get one of the NameSpace.AddressLists as an AddressList, get the
AddressList.AddressEntries collection and iterate that collection. You would
then use each AddressEntry.Name to fill your list.

If you wanted more than 1 AddressList if there is more than 1, you'd iterate
the AddressLists collection.

Outlook form code is only VBScript, not VBA code.

The best place to start is looking at the Object Browser Help on the objects
I mentioned and as a reference site use www.outlookcode.com, especially the
areas on Forms.

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

"navigator87" <piermagna@gmail.com> wrote in message
news:cd40b1be-60ed-4440-aa0a-15ad304825fb@25g2000hsx.googlegroups.com...
> Hi,
> i premise that i'm new of vba.
> i have to create a form in outlook 2003, with a listbox inside where i
> will insert all the names of my outlook's adress book but i have no
> clue on how to do that.
> I've looked for for a solution to this problem on different sites, but
> i haven't find the way to resolve it.
> Is there someone who can help me, maybe with an example?
> Thanks
06 Maycontact list vba.navigator87
06 May\ Re: contact list vba.Ken Slovak - [MVP - O...
All times are in (US) Eastern Daylight Time (GMT -4:00)