Required and oprtional attendees

Status
Not open for further replies.
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.

- john.doe@thisforum.com 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
 
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.

"JP Ronse" <fb893760@skynet.be> wrote in message

news:ejGPhI%230KHA.5996@TK2MSFTNGP05.phx.gbl...
> 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.

> - john.doe@thisforum.com 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

>
 
Hi Ken,

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

With kind regards,

JP
<kenslovak@mvps.org> wrote in message

news:equq44M1KHA.3652@TK2MSFTNGP04.phx.gbl...
> 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.

> >

>

> "JP Ronse" <fb893760@skynet.be> wrote in message
> news:ejGPhI%230KHA.5996@TK2MSFTNGP05.phx.gbl...
> > 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.
>

>> - john.doe@thisforum.com 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
>

>
>
>
>
>>

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
V Why is "Value Required" checkbox greyed out for Dates? Outlook VBA and Custom Forms 2
abnet Advice required re backing up .ost and .pst files Using Outlook 7
A Run time error 424. object required in outlook 2013 Outlook VBA and Custom Forms 10
I IMAP - are emails dynamically fetched from server as required? Using Outlook 2
S VBA Macro - Run-time error '424': object required - Help Please Outlook VBA and Custom Forms 3
J No response required when delegate arranging meeting Using Outlook 0
C Required VBA code to complete task when replied to Outlook VBA and Custom Forms 2
A Stopping the required attendee invites Using Outlook 1
M VBA SWcript Help Required Using Outlook 1
K What’s required to use BCM as a collaborative CRM platform? BCM (Business Contact Manager) 1
Diane Poremsky Help required for multiple identities when switching from POP to IMAP Using Outlook 1
J Outlook Invites automatically adding 'Required Attendees' Using Outlook 1
M No response required message Using Outlook 1
B Compile error: Object required Outlook VBA and Custom Forms 2
Fozzie Bear Calendar Events created on iPhone have suddenly start sending invitations to attendees Using Outlook 2
C Update Notes for Meeting Attendees Using Outlook 8
N Recurring invite sent w/distribution list adding/removing attendees Using Outlook 0
G how to cancel a recurring meeting but not the organizer but all attendees need to know. Using Outlook 1
E Can't invite attendees Using Outlook 1
C Unable to see meeting attendees Outlook 2010 Using Outlook 5
W Add Attendees is greyed out on Appointment Using Outlook 2
I Does forwarded meeting invite gets sent to all the Attendees and Organizer? Exchange Server Administration 0
J Ability to notify attendees when canceling past meeting is gone Using Outlook 1
R Limiting meeting attendees using VBA or an add-in Using Outlook 9
S How do I edit an attachment in an invite without notifying the attendees? Using Outlook 2
M Deleted Meeting but didnt send notice to attendees, how to fix?? Using Outlook 1
M programmatically make all Appointmentitem olResource Attendees unsendable Using Outlook 1
S Adding attendees and only send update to them Using Outlook 2
M Create editable meeting request with attendees from .ics Outlook VBA and Custom Forms 3

Similar threads

Back
Top