GMan
04-18-2008, 11:21 AM
I have a meeting that will need to be scheduled in outlook every week. However the participants in the meeting change based on who is on-call. I have setup a spreadsheet the shows week by week who is on-call and a macro that will determine which week we are on and send an e-mail to those who should be attending. However, I don't want to send an e-mail I want to send a meeting request.
My limited experience is failing me in my attempt to change the mail to a meeting request. Below I have included the code that is currently creating the mail.
Set OutApp = CreateObject("Outlook.Application")
Set OutMeeting = OutApp.CreateItem(olMeetingItem)
With OutMeeting
.To = stSendTo
.CC = ""
.BCC = ""
.Subject = stSubject
.Body = stBody
.Display 'or use .Send
.NoAging = True
End With
OutMeeting.Close (olSave)
Application.ScreenUpdating = True
Set OutMeeting = Nothing
Set OutApp = Nothing
I am thinking that I just need some added Properties to the OutMeeting Object. But I can not seem to find what properties to add to make it a meeting request.
Thanks!
My limited experience is failing me in my attempt to change the mail to a meeting request. Below I have included the code that is currently creating the mail.
Set OutApp = CreateObject("Outlook.Application")
Set OutMeeting = OutApp.CreateItem(olMeetingItem)
With OutMeeting
.To = stSendTo
.CC = ""
.BCC = ""
.Subject = stSubject
.Body = stBody
.Display 'or use .Send
.NoAging = True
End With
OutMeeting.Close (olSave)
Application.ScreenUpdating = True
Set OutMeeting = Nothing
Set OutApp = Nothing
I am thinking that I just need some added Properties to the OutMeeting Object. But I can not seem to find what properties to add to make it a meeting request.
Thanks!