excel - 如何发送具有自定义时间和与会者的多个 Outlook 邀请?
问题描述
我有多个 Outlook 会议要安排,详细信息在 excel 中。
每行在不同的列中都有与会者、时间和日期。有没有办法自动为每一行发送会议邀请?
解决方案
您可以在任何 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
推荐阅读
- javascript - 不读取 props 变量属性的原因是什么?
- sql - 解释 SQL 查询
- django - 在运行 redis-CLI 时,我的连接每次都被取消
- python - 在 docker 容器上运行时,Flask App 无法正常工作
- java - 如何制作一个类的所有实例的数组?
- java - 如何检查 LiveData 或 MutableLiveData 是否已设置值?
- python - matplotlib 表:每列范围的单独颜色图
- ansible - 如何从库存中获取组主机
- docker - 从 env var 获取 OAuth 设置,并在键中使用句号
- python-3.x - 如何将带有字典的列拆分为 2 列