Search Public Folders

B

Brad

Thanks for taking the time to read my question.

I would like to create a function or sub that looks in the sub folders of a
Public folder in Outlook for e-mails with a certain substrings in the subject
line, and then return the full subject line when it's found.

The two substrings to look for are "sg-" and "lm-"

This is my pretend code as an example.

Sub FindStuff()
Dim Results as string

Code here to search...

when found do this

If Results = "" then
Results = Bla
Else
Results = Results & "," & Bla2
end if

End sub

The very best would be if I could export the results to a csv file or
something like that.

Thanks again,

Brad
 
Top