跳至主要内容

如何在Outlook中将全天事件的默认状态更改为“忙碌”?

Author: Siluvia Last Modified: 2025-05-07

默认情况下,Outlook会将约会和会议的状态设置为“忙碌”,但将全天事件设置为“空闲”(见下图)。每次创建全天事件时,您都需要手动将“显示为”状态更改为“忙碌”。要将全天事件的默认“显示为”状态更改为“忙碌”,本文提供了两种方法。

changing the all-day event default to busy in Outlook

通过创建自定义表单将全天事件的默认状态更改为“忙碌”

自定义表单可以帮助您创建一个默认“显示为”状态为“忙碌”的全天事件。请按照以下步骤操作。

1. 切换到日历视图。点击“主页”>“新建约会”。

2. 在新的约会窗口中,点击“开发工具”>“设计此表单”。

提示:如果功能区上没有显示“开发工具”选项卡,请按照本文中的方法进行显示。

steps on changing the all-day event default to busy by creating a custom form

3. 然后,约会窗口将切换到设计模式。您需要点击“(P.2)”选项卡。

steps on changing the all-day event default to busy by creating a custom form

4. 从“字段选择器”窗格中分别拖动“全天事件”字段和“显示时间”字段到“(P.2)”选项卡下的面板中。

steps on changing the all-day event default to busy by creating a custom form

5. 右键单击拖出的“全天事件”字段,并从上下文菜单中选择“属性”。

steps on changing the all-day event default to busy by creating a custom form

6. 在“属性”对话框中,您需要按如下配置:

6.1) 转到“值”选项卡;
6.2) 在“初始值”部分,勾选“将此字段的初始值设置为”复选框;
6.3) 在文本框中输入值“True”;
6.4) 单击“确定”按钮。见截图:
steps on changing the all-day event default to busy by creating a custom form

7. 右键单击“显示时间”字段的组合框,并从上下文菜单中单击“属性”。

steps on changing the all-day event default to busy by creating a custom form

8. 在“属性”对话框中,您需要按如下配置:

8.1) 转到“值”选项卡;
8.2) 在“初始值”部分,勾选“将此字段的初始值设置为”复选框;
8.3) 在文本框中输入数字“2”;
8.4) 单击“确定”按钮。见截图:
steps on changing the all-day event default to busy by creating a custom form

9. 在功能区上单击“发布”>“另存为表单”。

steps on changing the all-day event default to busy by creating a custom form

10. 在“另存为表单”对话框中,您需要:

10.1) 在“查找范围”下拉列表中选择自定义表单的目标文件夹。这里我选择“个人表单库”项;
10.2) 在“显示名称”文本框中命名自定义表单;
10.3) 单击“发布”按钮。见截图:
steps on changing the all-day event default to busy by creating a custom form

11. 关闭约会窗口而不保存。

12. 从现在开始,当您需要创建一个默认“显示为”状态为“忙碌”的全天事件时,请切换到“日历”视图并单击“主页”>“新建项目”>“自定义表单”>“自定义表单的名称”。

steps on changing the all-day event default to busy by creating a custom form

注意:要创建默认“显示为”状态为“空闲”的全天事件,只需像往常一样操作:单击“主页”>“新建约会”,然后在“约会”窗口中勾选“全天事件”框。


使用VBA将全天事件的默认状态更改为“忙碌”

上述方法步骤太多。如果您总是需要创建一个默认“显示为”状态为“忙碌”的全天事件,以下VBA代码可以帮助您轻松完成。

1. 启动您的Outlook,同时按下“Alt”+“F11”键以打开“Microsoft Visual Basic for Applications”窗口。

2. 在“Microsoft Visual Basic for Applications”窗口中,双击“Project1”>“Microsoft Outlook对象”>“ThisOutlookSession”以打开“ThisOutlookSession (Code)”窗口,然后将以下代码复制到此代码窗口中。

steps on changing the all-day event default to busy by using VBA

VBA代码:将全天事件状态默认设置为“忙碌”

Public WithEvents GInspectors As Inspectors
Public WithEvents GAppointmentItem As AppointmentItem

Private Sub Application_Startup()
'Updated by Extendoffice 20220413
  Set GInspectors = Application.Inspectors
End Sub

Private Sub GInspectors_NewInspector(ByVal Inspector As Inspector)
  Select Case Inspector.CurrentItem.Class
    Case olAppointment
      Set GAppointmentItem = Inspector.CurrentItem
  End Select
End Sub

Private Sub GAppointmentItem_Open(Cancel As Boolean)
  Select Case GAppointmentItem.AllDayEvent
    Case True
      GAppointmentItem.BusyStatus = olBusy
  End Select
End Sub

Private Sub GAppointmentItem_PropertyChange(ByVal Name As String)
  If Name = "AllDayEvent" Then
    Select Case GAppointmentItem.AllDayEvent
      Case True
        GAppointmentItem.BusyStatus = olBusy
    End Select
  End If
End Sub

3. 保存VBA代码并重新启动Outlook。

从现在开始,在将约会或会议转换为全天事件后,“显示为”状态将默认显示为“忙碌”。

steps on changing the all-day event default to busy by using VBA

相关文章

在Outlook中更改全天事件的默认提醒时间 通常,Outlook 2007/2010中全天事件的默认提醒时间为18小时,而在Outlook 2013中为0.5天。有时,全天事件的默认提醒时间可能不符合您的工作安排。在这里,我们将介绍如何在Microsoft Outlook中更改全天事件的默认提醒时间。

在Outlook中更改默认后续时间 我们知道,当我们在Outlook中为电子邮件添加后续提醒时,默认的后续时间为下午4:30(或其他时间,取决于您的工作时间)。但是,您可能希望更改默认的后续时间,并让它在工作时间开始时提醒您,例如上午9:00。在本文中,我将向您展示如何在Outlook中更改默认的后续时间。

在Outlook中更改默认归档位置 默认情况下,Outlook有归档文件的默认位置。除了默认位置外,您可以为自己设置自己的归档位置。在本教程中,我们将详细向您展示如何在Outlook中更改默认归档位置。

在Outlook中更改默认附件保存位置 您是否厌倦了每次启动Outlook时都要找到指定的附件位置?在本教程中,我们将向您展示如何更改默认附件位置。之后,即使您重新启动Outlook,每次保存附件时都会自动打开指定的附件保存文件夹。

在Outlook中更改延迟发送的默认时间 本教程提供了一个VBA代码,帮助您更改Outlook中延迟发送选项的默认时间。