1
我尝试了以下两种方式来添加多个与会者,但只有最后一个电子邮件地址在.To区域中声明。将多个与会者添加到会议邀请
测试1:失败
.RequiredAttendees = "[email protected];"
.RequiredAttendees = "[email protected]"
测试2:失败
.RequiredAttendees = "[email protected]; [email protected]"
以下是完整代码:
Sub MeetingInvite()
Dim rng As Range
Dim OutApp As Object
Dim OutMail As Object
With Application
.EnableEvents = False
.ScreenUpdating = False
End With
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(1)
On Error Resume Next
With OutMail
.RequiredAttendees = "[email protected];"
.RequiredAttendees = "[email protected]"
.Subject = "Meeting"
.Importance = True
.Body = "Meeting Invite" & Format(Date)
.Display
End With
Set OutMail = Nothing
Set OutApp = Nothing
Unload Emy
End Sub
的代码创建一个邀请,但我需要添加大约30封电子邮件地址。
'.RequiredAttendees =“[email protected]; [email protected]”'适合我 –
https://i.stack .imgur.com/Oi4hi.png –
谢谢 - 让我再测试一下,然后回来。我很欣赏这个确认。 Byc hance,是否有最大数量的电子邮件可以添加? – LivinLife