Get unread mails from Outlook:
Set olApp = CreateObject("Outlook.Application")
Set olns = olApp.GetNameSpace("MAPI")
Set ObjFolder = olns.GetDefaultFolder(6)
For each item1 in ObjFolder.Items
If item1.unread Then
Print item1.body
End If
Next
Set olApp = CreateObject("Outlook.Application")
Set olns = olApp.GetNameSpace("MAPI")
Set ObjFolder = olns.GetDefaultFolder(6)
For each item1 in ObjFolder.Items
If item1.unread Then
Print item1.body
End If
Next
Comments