首页 > 解决方案 > 如何发送具有自定义时间和与会者的多个 Outlook 邀请?

问题描述

我有多个 Outlook 会议要安排,详细信息在 excel 中。

每行在不同的列中都有与会者、时间和日期。有没有办法自动为每一行发送会议邀请?

标签: exceloutlook

解决方案


您可以在任何 Microsoft Office 应用程序中使用 Visual Basic for Applications (VBA) 来控制 Microsoft Outlook。例如,如果您正在使用一个主应用程序和多个辅助应用程序开发跨应用程序解决方案,您可以在主应用程序中编写 VBA 代码来自动化 Outlook 发送消息以及在 Outlook 项目中存储和检索信息。从Visual Basic 应用程序自动化 Outlook和从其他 Office 应用程序自动化 Outlook文章解释了基础知识。

  Set OutMail = OutApplication.CreateItem(1)  
  With OutMail
      .MeetingStatus = olMeeting
      .RequiredAttendees = Cells(10, "H").Value
      .RequiredAttendees.Type = olRequired
      .Subject = Cells(10, "I").Value
      .Body = Cells(10, "I").Value
      .Start = Cells(10, "E").Value & " " & TimeValue("8:00 AM")
      .Location = "Your Office"
      .Duration = 15 ' 15 minute meeting
      .BusyStatus = 0 ' set as free
      .ReminderSet = True 'reminder set
      .ReminderMinutesBeforeStart = "20160" 'reminder 2 weeks before      
      .send
   End With 

推荐阅读