Solved

automatically copying events from one calendar to another calendar???

Posted on 2006-11-16
1
210 Views
Last Modified: 2010-04-08
Hi,

I have two calendars and I want to write up a code or macro to copy events from one calendar to anther.
I have one chief calendar and he would like to copy to allManagersCalendar each day.

How do I do this in VB or should  I try to do this in Macro??
Thanks for your help as always

0
Comment
Question by:dkim18
1 Comment
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 18015136
If you want to do this from inside Outlook, then use a macro.  Otherwise, use VB.  If you plan to run the code from a central location, then the account the code is run under must be given access to all of the managers' calendars and they must all be added to an Outlook profile.  The other issue to deal with is how to make this work.  You don't really want to copy the events, you want to do a one way synchronization from each manager's calendar to the central calendar.  The problem is how to identify which event came from which calendar and how to tell when an item has changed or when one has been deleted.  That's a bit more difficult in Outlook than it might seem.  The only unique value in an Outlook item is the "EntryID".  Unfortunately it's of little use since it changes if the item is moved or copied to a different folder.  For example, let's say we have an appointment with an EntryID of 1233456 on manager A's calendar.  When we copy the appointment to the shared calendar the EntryID will no longer be 123456, leaving us unable to use the EntryID to identify the item on future synchronization runs.  Using an item's subject is unsafe, since it's entirely possible that multiple managers would have a common appointment.  To get around the problem of uniquely identifying each item requires creating a user-defined field in the source item to hold the unique value.  The next step is to devise a way of generating unique values for each calendar.  Adding items in a syncing run is simple.  Merely search the shared calendar for an item with a matching unique key value.  If none is found, then add the item to the shared calendar.  If the item is found, then update it.  Deleting items is a bit more difficult.  It requires reversing the process and reading through the items on the shared calendar and searching the individual calendar for a match.  If one is not found, then the code needs to delete the item from the shared calendar.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve DNS query failed errors for Exchange
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

775 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question