Solved

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

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
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…

705 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

17 Experts available now in Live!

Get 1:1 Help Now