简体   繁体   中英

Using VBA to change body content of an outlook 2010 email that was sent

I sent an email using Outlook 2010 and after sending the email it was stored in the default Sent Items folder.

I would like to use VBA code to search for a string in the recently sent email and replace the string with a different string.

Can you suggest code that would do it?

GetDefaultFolder Method

myNamespace.GetDefaultFolder(olFolderSent)

Find & Replace Text -

Item.Body = Replace(Item.Body, "BlaBla", "Replacement text Here")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM