->[O2007] Parsing each line of a MailItem HTMLBody?

Status
Not open for further replies.
S

Steve JORDI

Is there a way to get each line of a HTMLBody from a MailItem?

I have to get each HTML source line and check them against some

references to alter them.

I'd like to be able to do loop into something like:

get line

replace(line, search, replace)

next line

etc...

Any way to do this?

Thanks for any light! :)

Sincerely,

Steve JORDI

(Remove the K_I_L_LSPAM from my email address)

----------------1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com

Switzerland WWW: www.sjordi.com

----------------Volcanoes at www.sjordi.com/volcanoes

MovieDB at www.sjmoviedb.com

------------------------------------------------
 
K

Ken Slovak - [MVP - Outlook]

HTMLBody is text (a string). You can use any string functions to do what you

want.

You can break any lines into an array you can parse one member at a time

using a Split() function on "<br>" or "<p>" or whatever line or paragraph

break characters you want.

Since you don't mention your Outlook version or what language you're using

it's impossible to me more specific.

"Steve JORDI" <stevejordiK__I_L_LSP_AM@hotmail.com> wrote in message

news:srrbk5172fsbg42i06ijsn87hbdql8jg7p@4ax.com...
> Is there a way to get each line of a HTMLBody from a MailItem?

> I have to get each HTML source line and check them against some
> references to alter them.

> I'd like to be able to do loop into something like:
> get line
> replace(line, search, replace)
> next line

> etc...

> Any way to do this?

> Thanks for any light! :)

> Sincerely,
> Steve JORDI

> (Remove the K_I_L_LSPAM from my email address)
> ----------------------------------------------> 1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
> Switzerland WWW: www.sjordi.com
> ----------------------------------------------> Volcanoes at www.sjordi.com/volcanoes
> MovieDB at www.sjmoviedb.com
> ------------------------------------------------
 
S

Steve JORDI

Hi Ken,

thanks for your help.

Ok, I'll check this. I had a hunch it would be string operations.

Just come from Excel VBA programming and of course handling

information in Excel and Outlook is different :)

Sincerely,

Steve JORDI

(Remove the K_I_L_LSPAM from my email address)

----------------1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com

Switzerland WWW: www.sjordi.com

----------------Volcanoes at www.sjordi.com/volcanoes

MovieDB at www.sjmoviedb.com

------------------------------------------------
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S [O2007] -> How to search for a string in the body and get the line number? Outlook VBA and Custom Forms 1
S ->[O2007] Any way to know the Plain Text Wrap limit? Outlook VBA and Custom Forms 2
S -> [O2007]: get the message HTML original source code? Outlook VBA and Custom Forms 6
G Parsing All Emails Outlook VBA and Custom Forms 8
J Email Parsing VBA Script for Outlook - NEEDED Outlook VBA and Custom Forms 7
J Outlook is not parsing html email, unreadable and attachment not decoded Using Outlook 1
F Managing and parsing names other than main contact Outlook VBA and Custom Forms 2
S Outlook email to configure setup for each mail Outlook VBA and Custom Forms 1
T Pictures degrade each time an Outlook item is edited and re-saved Using Outlook 1
J Outlook 2016 After a search in all mailboxes, where is each message that was found? Using Outlook 6
L Cannot open PST file for first session each day Using Outlook 6
Hudas VBA find and open an email without looping thru each email in the inbox Outlook VBA and Custom Forms 1
K VBA to measure response time for each emails in a shared mailbox Outlook VBA and Custom Forms 11
B Saved emails in folders I created on left of screen are being erased as I open each folder Using Outlook 0
D How to forward each email x minutes after it arrives in inbox and hasn't been moved or deleted? Using Outlook 1
O "Pre-filled" text in each new message Using Outlook 2
I Different users connected to an IMAP email aren't syncing with each other Using Outlook 5
T VBA to process each email Outlook VBA and Custom Forms 10
M Outlook displays "choose folder" for each sent item. Using Outlook 2
T Setting Color codes for each user of a shared Calendar Using Outlook 1
C Exchange 2003 - Outlook 2003 - Calendar entries saving over each other Using Outlook 2
A Recurring meeting sending a invite for each meeting Using Outlook 1
H Re: record of sales for each contact BCM (Business Contact Manager) 1
C SQLDUMPER library does not turn on correctly when the computer isturned on each time. BCM (Business Contact Manager) 1
H For Each loop not getting all Email Items Outlook VBA and Custom Forms 3
G Confirm Each Recipient in a New Outlook Mail Before it is Sent Outlook VBA and Custom Forms 4
G Confirm Each Recipient in a New Outlook Mail Before it is Sent Outlook VBA and Custom Forms 1
S How to add icon(or picture) field for each contact in contacts view Outlook VBA and Custom Forms 6
U Printing calendar weeks without three lines for tasks under each d Using Outlook 2

Similar threads

Top