PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Using Access to put a meeing in another user's folder

Reply

Using Access to put a meeing in another user's folder

 
Thread Tools Rate Thread
Old 03-11-2004, 07:43 PM   #1
Barb@MillerandMiller
Guest
 
Posts: n/a
Default Using Access to put a meeing in another user's folder


We found the code below on pg 230 in Microsoft Programming
Jumpstart for etc. This allows us to programmatically
place an appointment on another user's calendar.

Dim objOtherFolder As Outlook.MAPIFolder
Dim objAppt As Outlook.AppointmentItem

Set objOtherFolder = GetOtherUserCalendar("Emily Huie")
Set objAppt = objOtherFolder.Items.Add
(olAppointmentItem)

objAppt.Start = #11/16/2004 12:00:00 PM#
objAppt.Duration = 30
objAppt.Subject = "Lunch"
objAppt.Body = "Barb wants to buy you lunch today!"
objAppt.ReminderMinutesBeforeStart = 15
objAppt.ReminderSet = True
objAppt.Save
objAppt.Close (olSave)

Set objAppt = Nothing

'Release the object variables.
Set objOtherFolder = Nothing

Is there similar code for a meeting on someone's calendar
that still gives them the option to Accept/Decline?

Thanks,
Barb.

  Reply With Quote
Old 04-11-2004, 02:49 AM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Using Access to put a meeing in another user's folder

You can either place a meeting in someone else's calendar or you can send
them a meeting request that they can accept or decline. You can't do both,
at least not in a single item.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Barb@MillerandMiller" <anonymous@discussions.microsoft.com> wrote in
message news:3cb501c4c1dd$622399d0$a301280a@phx.gbl...
> We found the code below on pg 230 in Microsoft Programming
> Jumpstart for etc. This allows us to programmatically
> place an appointment on another user's calendar.
>
> Dim objOtherFolder As Outlook.MAPIFolder
> Dim objAppt As Outlook.AppointmentItem
>
> Set objOtherFolder = GetOtherUserCalendar("Emily Huie")
> Set objAppt = objOtherFolder.Items.Add
> (olAppointmentItem)
>
> objAppt.Start = #11/16/2004 12:00:00 PM#
> objAppt.Duration = 30
> objAppt.Subject = "Lunch"
> objAppt.Body = "Barb wants to buy you lunch today!"
> objAppt.ReminderMinutesBeforeStart = 15
> objAppt.ReminderSet = True
> objAppt.Save
> objAppt.Close (olSave)
>
> Set objAppt = Nothing
>
> 'Release the object variables.
> Set objOtherFolder = Nothing
>
> Is there similar code for a meeting on someone's calendar
> that still gives them the option to Accept/Decline?
>
> Thanks,
> Barb.
>



  Reply With Quote
Old 04-11-2004, 01:24 PM   #3
Barb@Miller&Miller
Guest
 
Posts: n/a
Default Re: Using Access to put a meeing in another user's folder

We would want to programmatically send them a meeting
request using VBA code that they can then either Accept or
decline. My question is how would I alter the code below
to do this?
>-----Original Message-----
>You can either place a meeting in someone else's calendar

or you can send
>them a meeting request that they can accept or decline.

You can't do both,
>at least not in a single item.
>
>--
>Sue Mosher, Outlook MVP
>Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
>"Barb@MillerandMiller"

<anonymous@discussions.microsoft.com> wrote in
>message news:3cb501c4c1dd$622399d0$a301280a@phx.gbl...
>> We found the code below on pg 230 in Microsoft

Programming
>> Jumpstart for etc. This allows us to programmatically
>> place an appointment on another user's calendar.
>>
>> Dim objOtherFolder As Outlook.MAPIFolder
>> Dim objAppt As Outlook.AppointmentItem
>>
>> Set objOtherFolder = GetOtherUserCalendar("Emily

Huie")
>> Set objAppt = objOtherFolder.Items.Add
>> (olAppointmentItem)
>>
>> objAppt.Start = #11/16/2004 12:00:00 PM#
>> objAppt.Duration = 30
>> objAppt.Subject = "Lunch"
>> objAppt.Body = "Barb wants to buy you lunch today!"
>> objAppt.ReminderMinutesBeforeStart = 15
>> objAppt.ReminderSet = True
>> objAppt.Save
>> objAppt.Close (olSave)
>>
>> Set objAppt = Nothing
>>
>> 'Release the object variables.
>> Set objOtherFolder = Nothing
>>
>> Is there similar code for a meeting on someone's

calendar
>> that still gives them the option to Accept/Decline?
>>
>> Thanks,
>> Barb.
>>

>
>
>.
>

  Reply With Quote
Old 04-11-2004, 02:12 PM   #4
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Using Access to put a meeing in another user's folder

See http://www.outlookcode.com/codedetail.aspx?id=88 for sample VBScript
code that you should be able to adapt.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Barb@Miller&Miller" <anonymous@discussions.microsoft.com> wrote in message
news:2efd01c4c271$ae36b390$a401280a@phx.gbl...
> We would want to programmatically send them a meeting
> request using VBA code that they can then either Accept or
> decline. My question is how would I alter the code below
> to do this?
>>-----Original Message-----
>>You can either place a meeting in someone else's calendar

> or you can send
>>them a meeting request that they can accept or decline.

> You can't do both,
>>at least not in a single item.


>>
>>"Barb@MillerandMiller"

> <anonymous@discussions.microsoft.com> wrote in
>>message news:3cb501c4c1dd$622399d0$a301280a@phx.gbl...
>>> We found the code below on pg 230 in Microsoft

> Programming
>>> Jumpstart for etc. This allows us to programmatically
>>> place an appointment on another user's calendar.
>>>
>>> Dim objOtherFolder As Outlook.MAPIFolder
>>> Dim objAppt As Outlook.AppointmentItem
>>>
>>> Set objOtherFolder = GetOtherUserCalendar("Emily

> Huie")
>>> Set objAppt = objOtherFolder.Items.Add
>>> (olAppointmentItem)
>>>
>>> objAppt.Start = #11/16/2004 12:00:00 PM#
>>> objAppt.Duration = 30
>>> objAppt.Subject = "Lunch"
>>> objAppt.Body = "Barb wants to buy you lunch today!"
>>> objAppt.ReminderMinutesBeforeStart = 15
>>> objAppt.ReminderSet = True
>>> objAppt.Save
>>> objAppt.Close (olSave)
>>>
>>> Set objAppt = Nothing
>>>
>>> 'Release the object variables.
>>> Set objOtherFolder = Nothing
>>>
>>> Is there similar code for a meeting on someone's

> calendar
>>> that still gives them the option to Accept/Decline?



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off