By default, the status of all day event is “Free”. But in reality, we commonly hope to set the status to “Busy”. Therefore, this article will show you 2 approaches to realize it.
Many users are annoyed at that Outlook show all day event as “Free” by default. Thus, they have to manually change the status every time when creating all day event. Undoubtedly, it is pretty troublesome. Hence, here we will introduce 2 tips to auto set the status of all day event to “Busy”.
Method 1: Design a Custom “Busy All day Event” Form
- To start with, launch your Outlook.
- Then head to “Calendar” navigation pane.
- Next, you could create a new appointment by clicking the “New Appointment” button in ribbon.
- In the Appointment window, shift to “Developer” tab and hit the “Design This Form” button.
- After that, you need to switch to “P.2” page.
- Later from the popup “Field Chooser” dialog box, drag and drop the “All Day Event” and “Show Time As” field to the “P.2” page.
- Next, right click the “All Day Event” field and choose “Properties” option from context menu.
- In the popup dialog box, switch to “Value” tab, enable “Set the initial value of this field to” and then type “True” in the box below.
- Then click “OK” to save changes.
- After that, right click the combo box beside the “Show Time As” field and opt for “Properties”.
- In the subsequent dialog box, turn to “Value” tab, check the “Set the initial value of this field to” and then type “2” in the box below.
- Later click “OK” to back to the form.
- Finally you can click “Publish” button in ribbon and choose “Publish Form As”. In the new dialog box, input a name in “Display name” field and ultimately hit “Publish” button.
- From now on, every time you could click to create a busy all day event, you can click “New Item” > “Choose Form” > “Busy All Day Events”.
If you feel that it is not as handy as what you wish, you could select the following way, which is using VBA.
Method 2: Auto Set All Day Event to “Busy” via VBA
- To start with, in the main Outlook window, press “Alt + F11” keys.
- After getting access to Outlook VBA editor, open the “ThisOutlookSession” project window.
- Then copy the following VBA code into this project.
Private WithEvents objInspectors As Inspectors Private WithEvents objAppointment As AppointmentItem Private Sub Application_Startup() Set objInspectors = Outlook.Application.Inspectors End Sub Private Sub objInspectors_NewInspector(ByVal Inspector As Inspector) If TypeName(Inspector.CurrentItem) = "AppointmentItem" Then Set objAppointment = Inspector.CurrentItem End If End Sub 'Occur when opening an appointment Private Sub objAppointment_Open(Cancel As Boolean) If objAppointment.AllDayEvent = True Then objAppointment.BusyStatus = olBusy End If End Sub 'Occur when changing an appointment Private Sub objAppointment_PropertyChange(ByVal Name As String) If Name = "AllDayEvent" Then 'If you set the appointment to all day event If objAppointment.AllDayEvent = True Then objAppointment.BusyStatus = olBusy End If End If End Sub
- After that, sign this code and change your Outlook macro settings.
- Eventually, restart your Outlook application to activate this new project.
- Since then, every time you create all day event, its status will be set to “Busy” automatically.
Secure Your Outlook Data
With no doubt, there are numerous potential security threats around Outlook. So, it is pretty burdensome and arduous to secure our Outlook data. We should keep vigilant all the time. In addition, so as to take relief measures in time, we ought to get hold of a PST fix tool, like DataNumen Outlook Repair.
Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including repair mdf and outlook repair software products. For more information visit www.datanumen.com