Results 1 to 2 of 2

Thread: Add an entry to a shared outlook Calendar

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 1999
    Location
    Southampton,England
    Posts
    11
    I have written a small program that maintains appointments in Outlook 98.

    How can I reference another mail account's shared calendar to add/edit appointments?

    I have checked it manually and there are no privilege issues causing problems, so it’s down to code.

    The method that works when referring to the default account is:

    Set Ol = CreateObject("Outlook.Application")
    Set OlItem = Ol.CreateItem(olAppointmentItem)
    Set Start/Finish/Body/Subject/Location etc..
    OlItem.Save

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Fresno, California, USA
    Posts
    195
    Add this stuff:


    Dim objRecipient As Recipient
    Dim objAppt As Outlook.AppointmentItem

    Set objRecipient = objNameSpace.CreateRecipient(OutlookName)
    Set objAppt = objNameSpace.GetSharedDefaultFolder(objRecipient, olFolderCalendar).Items.Add

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width