Required and oprtional attendees

J

JP Ronse

Hi All,

I am creating meetingrequests with Excel VBA. Part of the code below.

Set gobjOutlook = GetObject(, "Outlook.application")

Set gobjAppointment = gobjOutlook.CreateItem(olAppointmentItem)

With gobjAppointment

.MeetingStatus = olMeeting

... and all other stuff

Set gobjMailAddress = .Recipients.Add(gstrAddressee)

gobjMailAddress.Type = olOptional

Set gobjMailAddress = .Recipients.Add(gstrOptionalAddressee)

gobjMailAddress.Type = olOptional

End With

Sometimes the optional addressee becomes a required one and sometimes they
remain optional.

I'm not sure why this happen but think that it has something to do with the
way I specify the optional attendees.

- (e-mail address removed) looks as working always correctly

- John Doe works also correctly when known in my addressbook

- I goes from time to time wrong when John Doe is known in the addressbook
as John Doe (Outlook Forum)

Can soemone confirm this or tell me more about this? Thanks in advance.



With kind regards,



JP
 
K

Ken Slovak - [MVP - Outlook]

If you supply a name instead of an email address and the name can be
ambiguous or doesn't match what's in an address book the recipient may not
resolve. That shouldn't change the recipient type.

See if this works better. Here is the equivalent of each type of meeting
recipient versus the recipient type:

Required To
Optional Cc
Resource Bcc

Set those and see if things work better, but avoid ambiguous recipients.
 
J

JP Ronse

Hi Ken,

I've tried your suggestion and it looks indeed better. Thanks for this.

With kind regards,

JP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top