查询自动回复的Outlook [英] Query Outlook for Automatic Replies
问题描述
VBA中是否有办法查询GUI中是否启用了自动回复以及当前设置的开始和结束时间是什么?
Is there a way in VBA to query whether Automatic Replies are turned on in the GUI and what the start and end times are currently set to?
我有一个宏,我想根据这些条件和日期/时间自动触发。
I have a macro that I would like to automatically trigger based on those conditions and dates/times.
推荐答案
您好,
您可以阅读PR_OOF_STATE属性(DASL名称是 " http:// schemas .microsoft.com / mapi / proptag / 0x661D000B
")使用PropertyAccessor类的GetProperty方法。
Dim Store as Outlook.Store
Set Store = Application.Session.DefaultStore
oof = Store.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x661D000B")
MsgBox oof
尝试使用任何属性查看器来探索Outlook的内部。例如,看看MFCMAPI或OutlookSpy。请参阅
如何清洁使用MFCMAPI 的"外出规则"了解更多信息。
Try to use any property viewer for exploring internals of Outlook. For example, take a look at MFCMAPI or OutlookSpy. See
How to clean Out of Office Rules using MFCMAPI for more information.
这篇关于查询自动回复的Outlook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!