6 replies
by balayage
by anastasio
by eschlangen
You can use a macro to do this. The following VBA code should do what you want:
Sub ChangeAppointmentTimes()
Dim ol As Variant
Dim olns As Variant
Dim MyFolder As Variant
Dim SpecificItem As Variant
Dim Hours As Integer
Hours = 2
Set ol = New Outlook.Application
Set olns = ol.GetNamespace("MAPI")
Set MyFolder = olns.GetDefaultFolder(olFolderCalendar)
For Each SpecificItem In MyFolder.Items
SpecificItem.Start = SpecificItem.Start + (Hours / 24)
SpecificItem.Start = SpecificItem.End + (Hours / 24)
Next
End Sub
This code opens the calendar then adds the number of hours in the Hours variable to each appointment. If you want only certain appointments, you can use the Restrict method on the MyFolders.Items collection or just use an If-Then inside the For Each - Next loop.
Hope this helps.
by eschlangen
by anastasio
by anastasio
This discussion is closed to new replies.
Trending Software posts
Sort by Trending