[英]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.我使用 Outlook 2010 发送了一封电子邮件,并在发送电子邮件后将其存储在默认的已发送邮件文件夹中。
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.我想使用 VBA 代码在最近发送的电子邮件中搜索字符串并将该字符串替换为不同的字符串。
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")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.