
11-10-2003, 11:54 AM
|
|
Regular
|
|
Join Date: Nov 2003
Posts: 56
|
|
Outlook VBA - Searching for a String
|
Is there a way to code Outlook to automatically search through the body of an email I recieve to look for a certain string or certain set of characters? I recieve about 40 emails at work daily with each email containing many lines of information pertaining to work orders. Most of the information contained in the email is useless to me. I am only interested in the string of characters contained after the word NODE and before the word IP. Below is a small sample portion of the body of one of the emails. The body of the actual email is actually much longer so I would like to write a macro that will seach the entire body and locate each of the strings that are bolded below which ALWAYS always appear after the word NODE and before the word IP. After finding each of these strings I would like to write them to either a text or Excel file. Can this be done? I have very little experience coding with Outlook but am pretty familiar with using VBA with Excel and Word.
Thanks,
Rollin
******************************************************
SAMPLE EMAIL DATA
GQE Data=>
1068182720=>0=>>>GQE HIT=>3245:2:15:8:37=>Seen=>6=>Times In=>60=>Secs
1068182720=>0=>>>GQE NODE=>TUKRGAMA72W=>IP=>00.00.00.00=>CONN=>nms7709930921-8-35
1068182720=>0=>>>GQE INFO=>slot=10 port=4 vpi=8 vci=37
1068182720=>0=>>>GQE FABRIC=>itt addr: 0x8aa5, tgid: 0x8, oam: 0xc3, itt key: 0x27, cid:0xcad, oid:0x0
1068182736=>0=>>>GQE HIT=>7542:0:12:8:77=>Seen=>39=>Times In=>60=>Secs
1068182736=>0=>>>GQE NODE=>TUKRGAMA72W=>IP=>00.00.00.00=>CONN=>nms7704957911-8-35
1068182736=>0=>>>GQE INFO=>slot=11 port=4 vpi=8 vci=77
1068182736=>0=>>>GQE FABRIC=>itt addr: 0x824d, tgid: 0x8, oam: 0xc3, itt key: 0x19, cid:0x1d76,
|
Last edited by Rollin; 11-10-2003 at 12:02 PM.
|