The addresses are in the MailItem.Recipients collection for that item.
You'll have to iterate the collection and extract the address from each
Recipient object in the collection.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
See that is what I thought... but I wrote this simple code to say how many
recipients there are, I receive a message saying "Object Required:
MailItem". I have one person in the "To" field. I guess I should have
pasted that first.
Public Sub OK_Click()
Dim recips
recips = MailItem.Recipients.Count
MsgBox (recips)
End Sub
> The addresses are in the MailItem.Recipients collection for that item.
> You'll have to iterate the collection and extract the address from each
[quoted text clipped - 22 lines]
> >
> > Thanks
Sue Mosher [MVP-Outlook] - 21 May 2004 17:51 GMT
MailItem is the name of an Outlook object. Your code needs to instantiate an
object *variable* that represents the particular MailItem object that you
want to work with. If you're working with the currently displayed item, and
you have already instantiated an Outlook Application object (call it objOL),
you would use this VB.Net code to get the current item:
objInsp = objOL.ActiveInspector
If Not objInsp Is Nothing Then
objItem = objInsp.CurrentItem
End If
Note that you cannot predict what type of item CurrentItem will return.
Check the item's Class property before you invoke any proeprties or methods
specific to MailItem or any other type of item.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> See that is what I thought... but I wrote this simple code to say how many
> recipients there are, I receive a message saying "Object Required:
[quoted text clipped - 29 lines]
> > Outlook
> > > programming resource.