以编程方式设置MailItem的跟踪标志以完成吗? [英] Programmatically setting a MailItem's followup flag to complete?

查看:88
本文介绍了以编程方式设置MailItem的跟踪标志以完成吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图找出如何设置MailItem的后续标记以通过Outlook 2007中的VBA完成吗?

I'm trying to find out how to set a MailItem's followup flag to completed via VBA in Outlook 2007?

对于在Outlook 2003及更早版本中有效的方法,Google搜索会返回很多匹配结果(例如,更改MailItem的FlagStatus属性的值,如

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).

有人知道如何在OL2007 VBA中将当前选定的MailItem的跟踪状态设置为完成吗?

Does anyone know how to set the currently selected MailItem's follow-up status to completed in OL2007 VBA?

任何建议或工作代码将不胜感激!

Any advice or working code would be appreciated!

周到的

推荐答案

怎么样:

''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

Outlook 2010帮助,我的亮点

Outlook 2010 Help, my highlight

MailItem.FlagRequest属性
返回或设置一个String,该String指示邮件项目所请求的操作.
读/写. 版本信息
添加的版本:Outlook 2007

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

语法

expression.FlagRequest

expression.FlagRequest

这篇关于以编程方式设置MailItem的跟踪标志以完成吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆