Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Calendaring / July 2006

Tip: Looking for answers? Try searching our database.

How do I create an appointment on a specific calendar

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
OscarM - 31 Jul 2006 19:15 GMT
I'm wondering if there is a way to specify what calendar the oppointment is
created in?

There are three public calendars, and I want to specify in what calendar I
create an appointment.

Thanks,
Oscar M.
Oliver Vukovics - 31 Jul 2006 19:22 GMT
Hi Oscar,

select the Calendar for the new appointment => In Outlook under:
File/New/Date

create the new date and in the selected calendar you will get the
appointment. In my shared Outlook it works.

--
Oliver Vukovics
Share Outlook without Exchange: Public ShareFolder
Share your contacts, calendars or e-mails
http://www.publicshareware.com

> I'm wondering if there is a way to specify what calendar the oppointment
> is
[quoted text clipped - 5 lines]
> Thanks,
> Oscar M.
OscarM - 31 Jul 2006 20:26 GMT
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.

> Hi Oscar,
>
[quoted text clipped - 19 lines]
> > Thanks,
> > Oscar M.
Sue Mosher [MVP-Outlook] - 31 Jul 2006 20:31 GMT
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.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.