01-04-2010, 01:22 PM
Hi Siri,
Try with the below.
Try with the below.
Code:
Set olApp = CreateObject("Microsoft.Outlook")
Set olns = olApp.GetNameSpace("MAPI")
Set objFolder = olns.GetDefaultFolder(2)
For each item in objFolder.Items
If item.Unread Then
msgbox item.body
EndIf
Next