Send Outlook Meeting Invitation using Excel

后端 未结 3 1865
无人共我
无人共我 2021-01-22 05:27

I am looking to send meeting invitations for each row in a worksheet.

I am able to create an item that when displayed shows as an appointment, not a meeting request that

3条回答
  •  没有蜡笔的小新
    2021-01-22 06:12

    I had the same problem as the OP but rather than resort to send keys I used the inspector to access the Invite Attendees ribbon command. Here are excerpts from the code:

    Dim oApp As Object
    Dim OutMail As Object
    Dim oCommandBar As Object 'Office.CommandBars
    Dim oInsp As Object 'Outlook.inspector
            
    Set outMail = oApp.CreateItem(1)
    
    'then these in the loop to get access to the ribbon:
    
    Set oInsp = OutMail.GetInspector
    Set oCommandBar = oInsp.CommandBars
    
    'Show the mail item
    outMail.display
    
    'Press the Invite attendees ribbon item
    oCommandBar.ExecuteMso ("InviteAttendees")
    

提交回复
热议问题