i'm new in VBA so i need help to understand how can i:
- taking an email from my inbox, edit the body (deleting the last two rows and the first five rows).
- Forwarding that modified mail from another mailbox to another one.
i'm new in VBA so i need help to understand how can i:
Copyright © 2021 Jogjafile Inc.
First of all, you need to get the Inbox folder in the code. The GetDefaultFolder method can help with that. As soon as you retrieved an instance of the
Folderclass you may get an item and edit the message body. The Outlook object model supports three main ways of customizing the message body:Bodyproperty immediately.The MailItem.Forward method executes the
Forwardaction for an item and returns the resulting copy as aMailItemobject. For example: