我希望当您点击“发送”时,您会看到一个表格。这是我在 Outlook 2010 中开发的。
有没有办法用宏列表填充组合框?
Public Sub Confidential()
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.HTMLBody
info = " <html> <body> <FONT color=#666666> <font-size: 11px> <p></p> AUTO TEXT: This message has been marked as 'CONFIDENTIAL' please treat it as such </body> </font> </html>"
objMail.HTMLBody = Email + info
End Sub
Private Sub Sens_DropButtonClick()
Sens.AddItem "Confidential()"
Sens.AddItem "Normal()"
End Sub
Public Sub Send_Click()
Set objMail = Outlook.Application.ActiveInspector.CurrentItem
objMail.Send
End Sub
我认为这是一个公共潜艇是对的吗?
我的目标是,当您点击“发送”按钮时,会出现一个带有下拉框的表单,其中有 4 个选项是您可以对电子邮件使用的敏感度选项,除了我已将它们创建为宏并在其上添加代码(到添加到消息的主题和页脚)但我不会这样做,因此用户被迫进行选择,因此我创建此表单而不是使用 4 个按钮。