Rule Wizard and Macro (Outlook 2000)

Is it possible to link Rule Wizard to a Macro, so that every time I receive a message from a particular person, the macro would delete the first two lines of the message body and add two new lines of text in the message body, retrieve a list of other recipients and forward the new message to the list. If it is possible, could someone help me with the VBA code ? I've never done macro with Outlook. THANKS !

Re: Rule Wizard and Macro (Outlook 2000)

It could be done via VBA, but the hard part is with your specification "delete the first two lines of the message body". Through Outlook 2002, message body is a single object, and can't be broken down further within Outlook. There are two ways around this:

If the first two lines are always the same text, they can be removed by hard coding removal of the text in a VBA string instruction. Adding an initial piece of text is easy as msg.Body = mytext +msg.Body (except some hijinks may be needed if it's in HTML). One annoyance with this approach is that any fancy HTML or RTF formatting will disappear, defaulted to your default font and color.

The more complex way is to instantiate Word and perform the operations there. I don't know Word, so someone else would have to help you there.