Solved

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

Posted on 2006-11-16
1
209 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Read this checklist to learn more about the 15 things you should never include in an email signature.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now