View Single Post
  #5  
Old May 15th 07, 06:41 PM posted to microsoft.public.outlook.program_vba
ed
external usenet poster
 
Posts: 114
Default Identifying components of email message

Thanks, Michael. Did not see this syntax in your replies, perhaps I missed
it; still can't find it! Will try to implement this.
Best,
Ed

"Michael Bauer [MVP - Outlook]" wrote:


This is what I wrote:

The other syntax ("urn:schemas:httpmail:textdescription") is necessary only
if you want to use the AdvancedSearch method. After calling that method you
get the result in the AdvancedSearchComplete event:

Sub TestAdvancedSearchComplete()
Dim strF As String
Dim strS As String: strS = "Inbox"

strF = "urn:schemas:httpmail:textdescription LIKE '%VBOffice%'"

Application.AdvancedSearch(strS, strF)
End Sub

Private Sub Application_AdvancedSearchComplete(ByVal SearchObject As
Outlook.Search)
Debug.Print Found: " & SearchObject.Results.Count
End Sub

The thread's subjetc is 'extract email from message body'. It would be
easier for everybody to follow if you use the Reply method to reply to
messages and do not change the subject!

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6


Am Mon, 14 May 2007 10:13:05 -0700 schrieb Ed:

This message board is very clumbsy, and I have lost track of the thread

you
are referring to. I don't know which thread ou are referring to. Can you
send the subject line? I can't even search my own posts on this board.

Sorry
for the confusion.

"Michael Bauer [MVP - Outlook]" wrote:



Please see the original thread!

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:

http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 2 May 2007 18:11:00 -0700 schrieb Ed:

I am having difficulty trying to determine how to address the body of an
email message for a search.

Once I have pointed to the correct MAPI location, how do I tell the

macro
to
search the body of the email for a string?

I have been able to get pointers and indexes and boolean responses, but
not
able to address the actual text of the body of the message for the

search.

All suggestions considered; please help!


Ads