Human_doing
Board Regular
- Joined
- Feb 16, 2011
- Messages
- 137
Hi all,
The below code puts an appointment in my Outlook calendar, could anyone please tell me how to place an appoint in another user's calendar? For example if the other user's username was ObamaB?
Many thanks in advance for your help,
The below code puts an appointment in my Outlook calendar, could anyone please tell me how to place an appoint in another user's calendar? For example if the other user's username was ObamaB?
Many thanks in advance for your help,
Code:
Private Sub CommandButton1_Click()
Dim olApp As Outlook.Application
Dim olApt As AppointmentItem
Set olApp = New Outlook.Application
Set olApt = olApp.CreateItem(olAppointmentItem)
With olApt
.Start = Date + 1 + TimeValue("19:00:00")
.End = .Start + TimeValue("00:30:00")
.Subject = "Piano Lesson"
.Location = "The Teacher's House"
.Body = "Don't forget to take an apple for the teacher"
.BusyStatus = olBusy
.ReminderMinutesBeforeStart = 120
.ReminderSet = True
.Save
End With
Set olApt = Nothing
Set olApp = Nothing
MsgBox "Success!!!"
End Sub