troubleshooting Question

need to search the Subject in the Inbox folder under a specific store from MsAccess vba

Avatar of Fordraiders
FordraidersFlag for United States of America asked on
OutlookMicrosoft AccessVBA
4 Comments2 Solutions167 ViewsLast Modified:
I had this question after viewing From msAccess find correct email account in outlook.

' to find the right store or profile name
Dim colStores As Outlook.Stores
Dim oStore As Outlook.Store
Dim oRoot As Outlook.folder
 Set colStores = Outlook.Application.Session.Stores
 For Each oStore In colStores
     Set oRoot = oStore.GetRootFolder
         'Debug.Print (oRoot.FolderPath)
         'Debug.Print oRoot
  If oRoot = "redbook" Then
' now that i know i'm in the right store. I need to search for a phrase  "Action Required" under the Inbox folder

end if

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros