Hi Guy's, wilst i have the code below that filters an emai search, is there a simple method to only show unread emails for the given search string ?
I have had a look on DevHut and a couple of Micrisoft sites, struggling to find the best method of applying filter (unread only)
Here is my search, unsure if i can just add a small addiition to apply filter here:
Code:
SearchString = "Some Subject Or Some Email Address"
Set app = GetObject(, "Outlook.Application")
On Error GoTo 0
If app Is Nothing Then
Set app = CreateObject("Outlook.Application")
app.Explorers.Add app.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
app.Explorers(1).Activate
End If
app.ActiveExplorer.Search SearchString, olSearchScopeAllFolders
Set app = Nothing
DoCmd.RunCommand acCmdAppMinimize
Thanks guy's