Why different To's?

M

Michael Bauer [MVP - Outlook]

In the To property you see the display name of a recipient. For the address
see the Recipients collection.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Sat, 20 Dec 2008 08:09:09 -0800 schrieb Salad:
 
S

Salad

Michael said:
In the To property you see the display name of a recipient. For the address
see the Recipients collection.
Thanks for the help Michael. I guess I need need more help here. I
have as my code

Dim objFolder As Object
Dim obj as Object
Dim objA As Object
Dim objR As Object


et objFolder = objSession.GetDefaultFolder(FOLDER_INBOX)
olApp.GetNamespace("MAPI").GetDefaultFolder(FOLDER_INBOX)
olApp.GetNamespace("MAPI").GetDefaultFolder(FOLDER_INBOX)
' Loop all items in the Inbox\ Folder
For i = 1 To objFolder.Items.Count
set obj = objFolder.Items.Item(i)

'here's where I get mixed up. I didn't see many/any examples
Set objR = obj.Recipients
Set objA = objR.AddressEntry(0)
MsgBox objA.Address
Next

Could you help me out?
 
Top