question about GetDefaultFolder(olFolderInbox)

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Hi,

i need the emailaddress of the inbox folder.
I know all the items of the inbox except the emailaddress of the sender.
I did this:

Set olApp = New Outlook.Application
Set nspNameSpace = olApp.GetNamespace("MAPI")
Set objInBox = nspNameSpace.GetDefaultFolder(olFolderInbox).Items


rs!sender = objInBox.SenderName
rs!subject = objInBox.Subject
etc ...
rs!emailadd = objInBox.Mail

but this last line gives an error. I also tried MailAddress ...
What do i have to put behind objInBox in order to get the emailaddress of
the sender?

Thanks
Bob
 
Back
Top