PC Review


Reply
Thread Tools Rate Thread

adding a task or appt to a calendar

 
 
=?Utf-8?B?UGF1bCBDLg==?=
Guest
Posts: n/a
 
      27th May 2005
I am trying to add 2 appointments into two different calendars, one is my
default calendar and one is a shared calendar

i can get it to the default calendar by use of the following code

Set nms = appOutlook.GetNamespace("mapi")
Set fld = nms.GetDefaultFolder(olFolderCalendar)
Set itms = fld.Items
MsgBox Val([due at our location])
If Val([due at our location]) > 0 Then
Duedate = ([due at our location])
Duedate = Duedate + 0.5
Else
Duedate = Now()
End If
MsgBox Duedate + 0.5

Set appOl = CreateObject("outlook.application")
strSubject = "Purchase order #" & [Purchase Order No] & " From " & [To]
& " Is Due or past due"

Set Appt = itms.Add("IPM.Appointment")
With Appt
.Subject = (("Purchase order #" & [Purchase Order No]))
.Categories = strSubject
.Importance = olImportanceHigh
.Start = Duedate
.End = Duedate
.RequiredAttendees = "SteveF"
.Close (olSave)
End With

i have not been able to figure out where my shared calendar shipping is to
write to that appt list, any help would be much apreciated.

Thank you


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGF1bCBDLg==?=
Guest
Posts: n/a
 
      27th May 2005
never mind, solved this one by waking up and opening my eyes,
 
Reply With Quote
 
David C. Holley
Guest
Posts: n/a
 
      28th May 2005
Off the top of my head, there should be a method of the Namespace object
that will allow you to retrieve the folder by name.

Paul C. wrote:
> I am trying to add 2 appointments into two different calendars, one is my
> default calendar and one is a shared calendar
>
> i can get it to the default calendar by use of the following code
>
> Set nms = appOutlook.GetNamespace("mapi")
> Set fld = nms.GetDefaultFolder(olFolderCalendar)
> Set itms = fld.Items
> MsgBox Val([due at our location])
> If Val([due at our location]) > 0 Then
> Duedate = ([due at our location])
> Duedate = Duedate + 0.5
> Else
> Duedate = Now()
> End If
> MsgBox Duedate + 0.5
>
> Set appOl = CreateObject("outlook.application")
> strSubject = "Purchase order #" & [Purchase Order No] & " From " & [To]
> & " Is Due or past due"
>
> Set Appt = itms.Add("IPM.Appointment")
> With Appt
> .Subject = (("Purchase order #" & [Purchase Order No]))
> .Categories = strSubject
> .Importance = olImportanceHigh
> .Start = Duedate
> .End = Duedate
> .RequiredAttendees = "SteveF"
> .Close (olSave)
> End With
>
> i have not been able to figure out where my shared calendar shipping is to
> write to that appt list, any help would be much apreciated.
>
> Thank you
>
>

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Who entered appt. or task? Dungeon Rat Microsoft Outlook 2 28th Oct 2008 08:21 PM
update calendar appt in public calendar folder n.srikanthan@gmail.com Microsoft Outlook Calendar 3 18th Oct 2007 01:54 PM
Delegate an appt or task =?Utf-8?B?TGlzYQ==?= Microsoft Outlook Discussion 2 9th May 2005 06:01 PM
I can not open my existing calendar appt's., or make new appt's =?Utf-8?B?QmFqYSBUcmF2ZWxlcg==?= Microsoft Outlook Calendar 0 15th Dec 2004 09:19 PM
Previewing Public Calendar Appt. creates local Cal. Appt. Dan Colquhoun Microsoft Outlook Calendar 2 8th Apr 2004 10:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:53 AM.