![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() 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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() 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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |