我有改变邮件敏感性的代码。它确实有效,但字体大小发生了变化。代码有问题吗?Outlook VBA更改邮件字体大小
Public Sub MakeThisConfidential()
Application.ActiveInspector.CurrentItem.Sensitivity = olConfidential
Application.ActiveInspector.CurrentItem.Save
Set MsgSub = Outlook.Application.ActiveInspector.CurrentItem
Set objMail = Outlook.Application.ActiveInspector.CurrentItem
Subject = MsgSub.Subject
MsgSub.Subject = Subject & " - [CONFIDENTIAL]"
email = objMail.Body
info = vbNewLine & "AUTO TEXT: This message has been marked as 'CONFIDENTIAL' please treat it as such"
objMail.Body = email & info
End Sub
(plain/RTF/HTML)中的消息格式是什么? – 2012-07-05 18:27:40
谢谢JP。但我还有一个问题。出于某种原因,当脚本运行电子邮件字体大小更改时。这是因为剧本吗? – Rsmithy 2012-07-05 19:34:42
@SiddharthRout我将删除评论并重新发布为答案。 – JimmyPena 2012-07-05 20:27:05