I am using the below code to set the default folder as Inbox.
Set gnspNameSpace = Outlook.GetNamespace("MAPI") 'Outlook Object
Set fldInbox = gnspNameSpace.Folders(GenericFolder_Root).Folders("Inbox")
Set myInboxMailItem = fldInbox.Items
Hence all the incoming emails in Inbox are capture...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.