Good afternoon,
I've been banging my head against a wall for a while now, looking for a way to poke an appointment into a second calendar.
My code posts an appointment to the calendar.
Written in VB.Net 2010
thanks in advance
I've been banging my head against a wall for a while now, looking for a way to poke an appointment into a second calendar.
Dim TempApp As Outlook.Application = New Outlook.Application()
Dim TempAppItem As Outlook.AppointmentItem = TempApp.CreateItem(Outlook.OlItemType.olAppointmentItem)
With TempAppItem
.Subject = (" Test appointment")
.Location = "Main Office"
.Body = ("test appointment")
Dim DateString As String = StartDate & " " & StartTime
Dim convertedDate = Convert.ToDateTime(DateString)
.Start = convertedDate
DateString = EndDate & " " & EndTime
convertedDate = Convert.ToDateTime(DateString)
.End = convertedDate
.IsOnlineMeeting = False
.ReminderSet = False
.ReminderMinutesBeforeStart = 60
.BusyStatus = Outlook.OlBusyStatus.olBusy
.Save()
End With
TempApp = Nothing
TempAppItem = Nothing
My code posts an appointment to the calendar.
Written in VB.Net 2010
thanks in advance