append text at specific location in the message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Help please. I am using OL 2003. I am very new to VBA.

I have no problems adding a text at the end of the body message, but I want
to add the text right after the attachment. So if there is an attachment in
the middle of the email then I wanted to add some text right there.

Can some people please shield some light on some code I need to do this.

Thanks in advance.
 
Am Wed, 9 Aug 2006 05:02:02 -0700 schrieb newbies:

If it´s an RTF message then check the attachment´s Position property. If
it´s 10 e.g. then the next characters position is 11.

You can use the functions Left and Right to split the body and insert your
text.

If it´s an HTML message instead then parse the Body for the <img> tag. The
text continues where that tag ends.
 
Back
Top