Creating outlook meeting request

BigDelGooner

Board Regular
Joined
Aug 17, 2009
Messages
197
Hi all

I am using the following code to create an outlook meeting request.

This works fine apart from the fact that I'd like the meeting request to shift to the 'Invite Attendees' tabs. Any ideas on how I can do this?

Sub Open_InviteTeam()

Dim OutApp As Object
Dim OutMtg As Object

Set OutApp = CreateObject("Outlook.Application")
Set OutMtg = OutApp.CreateItem(1)

On Error Resume Next
With OutMtg
.Recipients.Add ("email@test.com")
.Subject = "Inv Meeeting:"
.Body = "Kind regards" & vbCr & Trim(Mid(Application.username, InStr(Application.username, ",") + 1, 50))
.Location = "Can I have a room pls"
.Duration = 60
.Display
End With
On Error GoTo 0

Set OutMtg = Nothing
Set OutApp = Nothing

End Sub

Any help greatly appreciated.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
You need to use the .MeetingStatus property
Code:
With OutMtg
.MeetingStatus = 1

If you need to set Required or Optional attendees you can do this by using the Type property of the Recipient object... in other words something like

Code:
With OutMtg
.MeetingStatus = 1
Set OutRec = .Recipients.Add("[EMAIL="email@test.com"]email@test.com[/EMAIL]")
OutRec.Type = 1 ' 1= Required, 2 = Optional, 3 = Resource and 0 = organiser

Simon
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top