脚本(vba)在Outlook中创建规则以推迟传递消息

时间:2012-01-18 07:58:59

标签: rules outlook-vba

我需要在Outlook中创建一个规则来推迟发送消息

代码是这样的:

Set colRules = Application.Session.DefaultStore.GetRules()
'Create the rule by adding a SendRule to Rules collection
Set oRule = colRules.Create("Envoi différé", olRuleSend)
Set oDeferRuleAction = oRule.Actions(OlRuleActionType.olRuleActionDefer)
With oDeferRuleAction
  .Enabled = True

' then the first action is activate "delete category" but not defer delivery 
' and I can't set a number of minutes

End With

缺少某些东西,我不知道如何解决它。

1 个答案:

答案 0 :(得分:0)

请参阅http://msdn.microsoft.com/en-us/library/office/ff868996(v=office.14).aspx

olRuleActionDefer

以编程方式创建新规则时支持?:否