我正在使用Outlook 2013,並試圖找出如何創建一個腳本來自動化在特定時間範圍內啓用OoO助理的過程。如何設置具有特定時間範圍的自動離開辦公室回覆
到目前爲止,我已經在下面創建了腳本(可以看到相應的功能),它可以成功更改文本並啓用OoO助理,但我無法找到是否可以設置特定的時間範圍。
Private Function Set_OoO(Subs As String, M As String, oStores As Outlook.Stores, oStr As Outlook.Store, oPrp As Outlook.PropertyAccessor)
Dim oStorageItem As Outlook.StorageItem
Set oStorageItem = Application.Session.GetDefaultFolder(olFolderInbox).GetStorage("IPM.Note.Rules.O ofTemplate.Microsoft", olIdentifyByMessageClass)
oStorageItem.Body = "I am out of the office, please talk to " + Subs
oStorageItem.Save
For Each oStr In oStores
If oStr.ExchangeStoreType = olPrimaryExchangeMailbox Then
Set oPrp = oStr.PropertyAccessor
Call oPrp.SetProperty(M, True)
End If
Next
Set olkIS = Nothing
Set olkPA = Nothing
End Function
檢查了這一點... https://stackoverflow.com/questions/12257985/outlook-vba-run- a-code-every-half-a-hour#15207463 ... – jsotola