![]() |
| 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. |
|
|||||||
| Tags: append, location, message, specific, text |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
| Display Modes | |
|
|
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 | roelof100@hotmail.com | 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 |