2017-12-02 3 views
1

여러 참석자를 추가하는 두 가지 방법을 시도했지만 .To 영역에 마지막 이메일 주소 만 명시했습니다.Meeting Invite에 여러 참석자 추가

테스트 1 : 실패

.RequiredAttendees = "[email protected];" 

    .RequiredAttendees = "[email protected]" 

테스트 2 :

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 

코드는 초대하지만 작성 아래는

.RequiredAttendees = "[email protected]; [email protected]" 

전체 코드입니다 실패 약 30 개의 이메일을 추가해야합니다. 주소.

+0

'.RequiredAttendees = "[email protected]; [email protected]"이 (가) –

+0

https : //i.stack에서 작동합니다. .imgur.com/Oi4hi.png –

+0

감사합니다.이 부분을 좀 더 테스트하고 다시 돌아 오도록하겠습니다. 확인해 주셔서 감사합니다. Byc hance, 내가 추가 할 수있는 최대 이메일 수가 있습니까? – LivinLife

답변

0

RequiredAttendees를 변경하려고합니다. 이 등록 정보는 필수 참석자의 표시 이름 만 포함합니다.

받는 사람 목록을 사용하여 참석자 목록을 설정해야합니다.

With OutMail 
    .Recipients.Add ("[email protected]") 
    .Recipients.Add ("[email protected]") 
    .Subject = "Meeting" 
    .Importance = True 
    .Body = "Meeting Invite" & Format(Date) 
    .Display 
End With 

을 아니면 시트에서 참석자를 읽으려면 :이 시도 당신이 정말로 우편으로 30 명 참석자를 초대 할 경우, 물론

With OutMail 
    For Each cell In Range("C2:C10") 
     .Recipients.Add (cell.Value) 
    Next cell 
    .Subject = "Meeting" 
    .Importance = True 
    .Body = "Meeting Invite" & Format(Date) 
    .Display 
End With 

, 예약하는 것이 현명 수 있습니다 며칠 앞두고 모임에 초대합니다 ...

관련 문제