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

append text at specific location in the message



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 9th 06, 01:02 PM posted to microsoft.public.outlook.program_vba
newbies
external usenet poster
 
Posts: 6
Default append text at specific location in the message

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.
Ads
  #2  
Old August 10th 06, 06:09 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default append text at specific location in the message

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.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


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.

  #3  
Old August 10th 06, 01:50 PM posted to microsoft.public.outlook.program_vba
newbies
external usenet poster
 
Posts: 6
Default append text at specific location in the message

Thanks Michael for helping me out.

I will try this and let you know the outcome.

Cheers

"Michael Bauer [MVP - Outlook]" wrote:

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.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


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.


  #4  
Old August 11th 06, 01:01 PM posted to microsoft.public.outlook.program_vba
newbies
external usenet poster
 
Posts: 6
Default append text at specific location in the message

It works.

Thanks

"newbies" wrote:

Thanks Michael for helping me out.

I will try this and let you know the outcome.

Cheers

"Michael Bauer [MVP - Outlook]" wrote:

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.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


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.


 




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
specific contacts to receive plain text emails T Outlook - Using Contacts 6 July 26th 06 06:43 PM
Rule to filter e-mails with a specific text string in an attachment [email protected] Outlook - General Queries 2 April 19th 06 09:38 AM
have server reply using a specific message Terry Outlook - Installation 2 March 7th 06 01:00 PM
Send plain text to specific contacts. Jarryd Outlook - Using Contacts 4 March 2nd 06 03:32 PM
How do I append text to the body of a email? Beginner Outlook and VBA 2 February 9th 06 09:36 PM


All times are GMT +1. The time now is 03:49 PM.


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.