Hi Oliver, thanks for your response. But I'm doing this through VB code.
This is the code:
Dim objOutlook As Outlook.Application
Dim objAppt As Outlook.AppointmentItem
Dim objRecurPattern As Outlook.RecurrencePattern
Set objOutlook = CreateObject("Outlook.Application")
Set objAppt = objOutlook.CreateItem(olAppointmentItem)
...
What I would like to know is if there is a way to specify the calendar to be
updated.
Thanks.
Oscar M.
To create a new instance in a non-default folder programmatically, use the Add method on the target folder's Items collection:
Set newItem = targetFolder.Items.Add("IPM.Appointment")
You can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.
FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public
.outlook.program_vba

Signature
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Hi Oliver, thanks for your response. But I'm doing this through VB code.
>
[quoted text clipped - 36 lines]
>> > Thanks,
>> > Oscar M.
OscarM - 31 Jul 2006 20:45 GMT
Thanks for your help!
I just put a post on that newsgroup. Sorry.
> To create a new instance in a non-default folder programmatically, use the Add method on the target folder's Items collection:
>
[quoted text clipped - 44 lines]
> >> > Thanks,
> >> > Oscar M.