এই নির্দেশিকাটি অনুসরণ করুন:
https://www.datanumen.com/blogs/2-methods-change-default-duration-appointment-meeting-outlook/
এবং পরিবর্তে নিম্নলিখিত ম্যাক্রো ব্যবহার করুন:
Private WithEvents objInspectors As Outlook.Inspectors
Private WithEvents objAppointment As Outlook.AppointmentItem
Private Sub Application_Startup()
Set objInspectors = Outlook.Application.Inspectors
End Sub
Private Sub objInspectors_NewInspector(ByVal Inspector As Inspector)
If TypeOf Inspector.CurrentItem Is AppointmentItem Then
Set objAppointment = Inspector.CurrentItem
End If
End Sub
Private Sub objAppointment_Open(Cancel As Boolean)
'Set the default duration of new appointment
If objAppointment.CreationTime = #1/1/4501# Then
objAppointment.Duration = "50"
objAppointment.Start = DateAdd("n", 5, objAppointment.Start)
End If
End Sub
Private Sub objAppointment_PropertyChange(ByVal Name As String)
'When you disable the "All Day Event"
'Change the default duration of the current appointment
If Name = "AllDayEvent" Then
If objAppointment.AllDayEvent = False Then
objAppointment.Duration = "50"
objAppointment.Start = DateAdd("n", 5, objAppointment.Start)
End If
End If
End Sub