T
Tom
I have the code below which creates an appointment in Outlook default calendar. I need to add a few lines to create the appointment to an alternative calendar in the same pst file. I need to choose between three calendars in which to create the appointment and plan to select the calendar name from alist on the form.
Any help welcome.
Dim objOutlook As Outlook.Application
Dim objAppt As Outlook.AppointmentItem
Set objOutlook = CreateObject("Outlook.Application")
Set objAppt = objOutlook.CreateItem(olAppointmentItem)
With objAppt
..Start = Me!ApptDate & " " & Me!ApptTime
..Duration = Me!ApptLength
..Subject = Me!Appt
.Save
.Close (olSave)
End With
Set objAppt = Nothing
Set objOutlook = Nothing
Any help welcome.
Dim objOutlook As Outlook.Application
Dim objAppt As Outlook.AppointmentItem
Set objOutlook = CreateObject("Outlook.Application")
Set objAppt = objOutlook.CreateItem(olAppointmentItem)
With objAppt
..Start = Me!ApptDate & " " & Me!ApptTime
..Duration = Me!ApptLength
..Subject = Me!Appt
.Save
.Close (olSave)
End With
Set objAppt = Nothing
Set objOutlook = Nothing