vba 以编程方式设置 MailItem 的后续标志以完成?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4417427/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Programmatically setting a MailItem's followup flag to complete?
提问by MidnightThoughtful
I'm trying to find out how to set a MailItem's followup flag to completed via VBA in Outlook 2007?
我想了解如何在 Outlook 2007 中通过 VBA 设置 MailItem 的后续标志以完成?
Googling returns a lot of hits for methods that were valid in Outlook 2003 and before (for example, changing the value of the MailItem's FlagStatus property, as is demonstrated in Outlook 2007 - Email Flag Status), however Microsoft overhauled flagging for OL 2007 and the FlagStatus property is no longer available in OL2007 (despite what is implied by the link above).
对于在 Outlook 2003 和更早版本中有效的方法,Google 搜索会返回大量命中(例如,更改 MailItem 的 FlagStatus 属性的值,如Outlook 2007 - Email Flag Status 中所示),但是 Microsoft 彻底检查了 OL 2007 和之前的标记OL2007 中不再提供 FlagStatus 属性(尽管上面的链接暗示了什么)。
Does anyone know how to set the currently selected MailItem's follow-up status to completed in OL2007 VBA?
有谁知道如何在OL2007 VBA中设置当前选中的MailItem的后续状态为已完成?
Any advice or working code would be appreciated!
任何建议或工作代码将不胜感激!
planetthoughtful
行星周到
回答by Fionnuala
How about:
怎么样:
''Case sensitive
If oItem.FlagRequest = "Follow up" Then
oItem.FlagStatus = olFlagComplete
End If
http://msdn.microsoft.com/en-us/library/aa212007(office.11).aspx
http://msdn.microsoft.com/en-us/library/aa212013(office.11).aspx
http://msdn.microsoft.com/en-us/library/aa212007(office.11).aspx
http://msdn.microsoft.com/en-us/library/aa212013(office.11).aspx
Outlook 2010 Help, my highlight
Outlook 2010 帮助,我的亮点
MailItem.FlagRequest
Property
Returns or sets a String that indicates the requested action for a mail item.
Read/write.
Version Information
Version Added: Outlook 2007
邮件项。FlagRequest
属性
返回或设置一个字符串,指示对邮件项目请求的操作。
读/写。版本信息
版本添加: Outlook 2007
Syntax
句法
expression.FlagRequest
表达式.FlagRequest