Possible Duplicate:
Outlook 2007 VBA to get reference to additional Inbox
Wwe need to open up other users inbox in Microsoft Outlook by File->Open->Other Users's Folder. Then we need to check for a mail. We have tried the below code
Set olApp=CreateObject("Outlook.Application")
Set olns=olApp.GetNameSpace("MAPI")
Set objFolder=olns.GetDefaultFolder(6)
For each item1 in objFolder.Items
msgbox item1.subject
Next
But with this code we cant able to read mail from other users inbox since the GetDefaultFolder
methods Parameter is 6 .. can somebody please help on this