Hi All,
I would like to send an outlook meeting invite via excel
I have the following code so for, which works for an appointment
I want the following changes to this code:
1. Make it a meeting instead of an appointment
2. Be able to book a room
3. Send the meeting request to another colleague of mine
Could anyone help me with how to proceed for these three changes?
Thanks in advance
I would like to send an outlook meeting invite via excel
I have the following code so for, which works for an appointment
Code:
Option Explicit
Private Sub meetingbooking()
Dim objOL 'As Outlook.Application
Dim objAppt 'As Outlook.AppointmentItem
Const olAppointmentItem = 1
Const olMeeting = 1
Set objOL = CreateObject("Outlook.Application")
Set objAppt = objOL.CreateItem(olAppointmentItem)
With objAppt
.Subject = "Meeting"
.Start = "10/18/2014 09:30"
.End = "10/18/2014 10:30"
.Location = "xyz@company.com"
.MeetingStatus = olMeeting ' make it a meeting request
'.Attachments.Add attPath
.Body = "This is a test-text in the message body..."
.Display
End With
Set objAppt = Nothing
Set objOL = Nothing
End Sub
I want the following changes to this code:
1. Make it a meeting instead of an appointment
2. Be able to book a room
3. Send the meeting request to another colleague of mine
Could anyone help me with how to proceed for these three changes?
Thanks in advance