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

Select all message body and delete



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 22nd 07, 01:16 PM posted to microsoft.public.outlook.program_vba
Geminist
external usenet poster
 
Posts: 2
Default Select all message body and delete

Hi there,

I am using outlook 2003 + Outlook Email Editor.

What I want to do is for new/reply message I am composing, I can use a VBA
code to select all the first 10 lines of text and delete them.

I know I can do this manually, but I am trying to do this using VBA so that
I can attach other features into this.

Thank you very much for the help.
  #2  
Old February 22nd 07, 03:17 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Select all message body and delete

Not possible in that configuration if you are using plain text or rtf. If
using HTML then your code can get HTMLEditor and its Document object and use
code on that. The code would be standard IE type HTML code available when
you reference the shdocvw.dll (Internet Controls).

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Geminist" wrote in message
...
Hi there,

I am using outlook 2003 + Outlook Email Editor.

What I want to do is for new/reply message I am composing, I can use a VBA
code to select all the first 10 lines of text and delete them.

I know I can do this manually, but I am trying to do this using VBA so
that
I can attach other features into this.

Thank you very much for the help.


  #3  
Old February 22nd 07, 03:29 PM posted to microsoft.public.outlook.program_vba
Geminist
external usenet poster
 
Posts: 2
Default Select all message body and delete

Thank you for the reply.

I have some basics in VBA but I'm lost in html. The message body we use is
based on html.

Can you point me in the right direction in how to do this?

Thank you.

"Ken Slovak - [MVP - Outlook]" wrote:

Not possible in that configuration if you are using plain text or rtf. If
using HTML then your code can get HTMLEditor and its Document object and use
code on that. The code would be standard IE type HTML code available when
you reference the shdocvw.dll (Internet Controls).

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Geminist" wrote in message
...
Hi there,

I am using outlook 2003 + Outlook Email Editor.

What I want to do is for new/reply message I am composing, I can use a VBA
code to select all the first 10 lines of text and delete them.

I know I can do this manually, but I am trying to do this using VBA so
that
I can attach other features into this.

Thank you very much for the help.



  #4  
Old February 23rd 07, 03:34 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Select all message body and delete

Take a look at the 2 macro samples that work with the HTMLDocument at
http://www.outlookcode.com/codedetail.aspx?id=1358. More general information
is at http://www.outlookcode.com/d/formatmsg.htm.

Be aware that if you ever move to Outlook 2007 that HTMLEditor is deprecated
in that version and you get everything from the WordEditor object, which
returns a Word Document object that is worked with using the Word object
model.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Geminist" wrote in message
...
Thank you for the reply.

I have some basics in VBA but I'm lost in html. The message body we use
is
based on html.

Can you point me in the right direction in how to do this?

Thank you.


 




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
anything capable to delete junk mails based on body text? zero Outlook Express 7 December 19th 06 10:50 PM
Data within message body ... OE 6 Jim Hughes Outlook Express 4 September 29th 06 04:36 PM
Outlook 2007 e-mail message headers download but not message body DJR Outlook - Installation 3 September 13th 06 03:00 AM
Recieving a message with attachment and I can't view message body mytwosweetpeas Outlook - General Queries 0 July 7th 06 07:48 PM
Cant select to address from contacts on new message [email protected] Outlook - Using Contacts 2 March 3rd 06 04:51 PM


All times are GMT +1. The time now is 10:26 AM.


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.