Hi Guy's, the below code will narrow down emails exchanged for the specific email address, is there a method i can find values within this range of emails (may not be one that is selected currently but within the email address) ?
For Example, to Find:
We Can Offer
Or
We Would Have To Charge
Or
Free Removal
Those are the 3 strings I would like to find within the searched email range ??
Is it possible to perhaps use instr for range of emails ?
Code:
Dim app As ObjectDim SearchString As String
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
SearchString = Me.txtEmailAddress
app.ActiveExplorer.Search SearchString, olSearchScopeAllFolders
Set app = Nothing
DoCmd.RunCommand acCmdAppMinimize