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

Search mail message for text strings



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 25th 08, 02:25 AM posted to microsoft.public.outlook.program_vba
tom001
external usenet poster
 
Posts: 2
Default Search mail message for text strings

Hi,
I have to manage a number of appliances on the network each with ports, and
cryptic error codes for each one ... which send me smtp error messages..
Is there any code that I can put into a macro to search for several
different strings in the mail message when it arrives? And match these error
codes up with ones on a spreadsheet? Otherwise I can just kick off a prog to
search an indexed file... but I don't know how to create the above
client-based alert in outlook 2003, SP2. on Xp.
thanx, Tom.
  #2  
Old February 25th 08, 02:28 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Search mail message for text strings

Go to www.outlookcode.com and search for ZAPHTML. That has an example of an
ItemAdd handler for items added to the Inbox. Modify that code to search
each item that comes in for the text you want in the Body property of each
item.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"tom001" wrote in message
...
Hi,
I have to manage a number of appliances on the network each with ports,
and
cryptic error codes for each one ... which send me smtp error messages..
Is there any code that I can put into a macro to search for several
different strings in the mail message when it arrives? And match these
error
codes up with ones on a spreadsheet? Otherwise I can just kick off a prog
to
search an indexed file... but I don't know how to create the above
client-based alert in outlook 2003, SP2. on Xp.
thanx, Tom.


  #3  
Old February 26th 08, 02:05 AM posted to microsoft.public.outlook.program_vba
tom001
external usenet poster
 
Posts: 2
Default Search mail message for text strings

Thanx Ken.

"Ken Slovak - [MVP - Outlook]" wrote:

Go to www.outlookcode.com and search for ZAPHTML. That has an example of an
ItemAdd handler for items added to the Inbox. Modify that code to search
each item that comes in for the text you want in the Body property of each
item.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"tom001" wrote in message
...
Hi,
I have to manage a number of appliances on the network each with ports,
and
cryptic error codes for each one ... which send me smtp error messages..
Is there any code that I can put into a macro to search for several
different strings in the mail message when it arrives? And match these
error
codes up with ones on a spreadsheet? Otherwise I can just kick off a prog
to
search an indexed file... but I don't know how to create the above
client-based alert in outlook 2003, SP2. on Xp.
thanx, Tom.



 




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
How to (Use Outlook to search for text in message) sturger Outlook and VBA 2 November 26th 07 07:02 PM
Search & Replace Text in the Body of a Message dch3 Outlook and VBA 1 June 7th 07 03:45 AM
search for text in a message, OE 6 roger Outlook Express 1 February 27th 07 12:43 AM
Export e-mail strings to database [email protected] Outlook and VBA 3 May 23rd 06 08:40 PM
Export e-mail strings to database [email protected] Outlook and VBA 0 May 22nd 06 02:32 PM


All times are GMT +1. The time now is 10:42 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.