A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Identifying components of email message



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 3rd 07, 03:11 AM posted to microsoft.public.outlook.program_vba
ed
external usenet poster
 
Posts: 114
Default Identifying components of email message

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
  #2  
Old May 3rd 07, 07:12 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Identifying components of email message



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!

  #3  
Old May 14th 07, 07:13 PM posted to microsoft.public.outlook.program_vba
ed
external usenet poster
 
Posts: 114
Default Identifying components of email message

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!


  #4  
Old May 14th 07, 07:47 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Identifying components of email message


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!


  #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!


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't Drag and drop an email message from an Outlook Folder into a new message [email protected] Outlook - General Queries 1 December 15th 06 12:56 AM
Identifying whether there are user properties defined Dewey Add-ins for Outlook 3 September 22nd 06 12:01 AM
identifying calendar conflicts Peter Grono Outlook - Calandaring 0 July 31st 06 12:41 PM
Launching Office 2007 components gets Office 2003 set up P Cause Outlook - Installation 0 July 1st 06 01:46 PM
PST files and other components Mark Outlook - Installation 4 April 1st 06 05:54 AM


All times are GMT +1. The time now is 11:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.