Solved

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

Posted on 2006-11-16
1
216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
This article describes how to import Lotus Notes Contacts into Outlook 2016, 2013, 2010 and 2007 etc. with a few manual steps. You can easily export and migrate Lotus Notes contacts into Microsoft Outlook without having to use any third party tools.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

615 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