![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |