D
dim4x4
Hi!
I'm trying to just change "Duration" and "Reminder" properties of
selected appointment. Start time should reman the same (as when
selected). In the macro below it says "Type mismatch". Could anyone
help? Thx!
Sub ChangeProperties()
Dim objAppt As Outlook.AppointmentItem
Set objAppt =
Outlook.Application.ActiveExplorer.Selection
With objAppt
.Duration = 120 ' 2 hours
.ReminderMinutesBeforeStart = 60 ' 1 hour
End With
Set objAppt = Nothing
End Sub
I'm trying to just change "Duration" and "Reminder" properties of
selected appointment. Start time should reman the same (as when
selected). In the macro below it says "Type mismatch". Could anyone
help? Thx!
Sub ChangeProperties()
Dim objAppt As Outlook.AppointmentItem
Set objAppt =
Outlook.Application.ActiveExplorer.Selection
With objAppt
.Duration = 120 ' 2 hours
.ReminderMinutesBeforeStart = 60 ' 1 hour
End With
Set objAppt = Nothing
End Sub