如何将Outlook 2010设置为自动删除已取消的会议


10

Outlook 2010具有一个自动接受会议请求并在以下位置删除已取消会议的选项:文件->选项->日历->资源计划

在此选项下,会议请求被自动接受。我不要这个 我要执行以下操作:

  • 从日历中删除已取消的会议
  • 从我的收件箱中删除已取消的:...会议电子邮件
  • 对会议请求不做任何事情

这可能吗?


在此处查看Microsoft文章;technet.microsoft.com/zh-cn/library/dd335046(v = exchg.160).aspx(向下滚动到示例下方,然后打开“参数”。“ RemoveOldMeetingMessages”有可能满足您的要求,或者可能一个许多其他人中
Aganju 2015年

Answers:


1

我通过搜索您所问的确切问题找到了答案

您将必须使用以下源代码创建宏(将邮箱名称更改为您自己的名称):

Set olResCalendar = OpenMAPIFolder("\MailboxName\Calendar")
Sub RemoveCanceledAppointments()

Dim olResCalendar As Outlook.MAPIFolder, olApptItem As Outlook.AppointmentItem, intCounter As Integer

'Change the path to the resource calendar on the next line
Set olResCalendar = OpenMAPIFolder("\MailboxName\Calendar")

For intCounter = olResCalendar.Items.Count To 1 Step -1
Set olApptItem = olResCalendar.Items(intCounter)
    If Left(olApptItem.Subject, 9) = "Canceled:" Then
    olApptItem.Delete
    End If
Next
Set olApptItem = Nothing
Set olResCalendar = Nothing
End Sub

Function OpenMAPIFolder(szPath)
Dim app, ns, flr, szDir, i
Set flr = Nothing
Set app = CreateObject("Outlook.Application")
    If Left(szPath, Len("\")) = "\" Then
    szPath = Mid(szPath, Len("\") + 1)
    Else
    Set flr = app.ActiveExplorer.CurrentFolder
    End If

While szPath <> ""
i = InStr(szPath, "\")
    If i Then
    szDir = Left(szPath, i - 1)
    szPath = Mid(szPath, i + Len("\"))
    Else
    szDir = szPath
    szPath = ""
    End If
    If IsNothing(flr) Then
    Set ns = app.GetNamespace("MAPI")
    Set flr = ns.Folders(szDir)
    Else
    Set flr = flr.Folders(szDir)
    End If
    Wend
Set OpenMAPIFolder = flr
End Function

Function IsNothing(Obj)
If TypeName(Obj) = "Nothing" Then
    IsNothing = True
Else
    IsNothing = False
End If
End Function

页面引用:

该宏将搜索资源日历,并删除主题中带有“已取消:”的项目。您还必须对资源邮箱具有适当的权限才能起作用。此宏将删除已取消的会议,将同时删除直接预订和自动接受的会议。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.