Solved

I need a macro to copy a shared calendar to my inbox.

Posted on 2008-11-01
9
360 Views
Last Modified: 2010-08-05
I know how to do this using the menus but am trying to write an autorun code to perform this monthly.
I have a few users that have shared their calendars with me.
I am looking for some VB macro code  to copy them to my inbox.
Eventually I will export them to Excel and calculate event durations.
0
Comment
Question by:Mswetsky
  • 5
  • 4
9 Comments
 
LVL 76

Expert Comment

by:David Lee
ID: 22861283
Hi, Mswetsky.

What do you mean by "autorun code"?  
0
 
LVL 1

Author Comment

by:Mswetsky
ID: 22868186
I am going to create a batch file so I can open MS outlook and automatically run a macro.
Something like the following would run macro2.
"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"  /autorun macro2

I would set the batch to run monthly and set up another app to calculate and group the totals following it.
0
 
LVL 76

Expert Comment

by:David Lee
ID: 22872910
Got it.  Does the script need to delete the calendar if already exists in your mailbox?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 1

Author Comment

by:Mswetsky
ID: 22876267
No I would hope that it was dynamic and showed continuing activities.
Do you know If I copy the shared calendar to my inbox if it is a snapshot or a continued shared updated object?
0
 
LVL 76

Expert Comment

by:David Lee
ID: 22877203
Snapshot.
0
 
LVL 1

Author Comment

by:Mswetsky
ID: 22879474
OK, Darn,
then I will need to delete old and copy new ones
0
 
LVL 1

Author Comment

by:Mswetsky
ID: 22879551
Hi BDF,
WIll the code you provided in question
        Q_23868129.html?cid=748#a22877192
export the shared calendar or does it need to be copied to my inbox first?

It looks like it exports the named calendar.
0
 
LVL 76

Accepted Solution

by:
David Lee earned 250 total points
ID: 22879666
You don't have to copy the calendar to access or read it though.  You can do both while leaving it where it is.  The only reason I can think of to copy the calendar to your mailbox is if you need access to it while not connected to your mail server.  

The code I provided in the other question will export any calendar.  You just need to know the path to it.  Or, I can modify the code so you can select, i.e. click on, the calendar.  The code would then run against whatever calendar was selected without modification.  That's the best solution if you want to run it against a number of different calendars.
0
 
LVL 1

Author Comment

by:Mswetsky
ID: 22879722
I will be getting the calendars shared from a specific group of people so If I can name them and export them that is great. A 2 for 1 solution.  :-)
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unable to Attach Files in Google Chrome 1 40
How to remove the name in calendar in Outlook 2016 3 45
outlook 6 48
Outlook 2010 sends emails not originated by user 8 61
In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
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 …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

840 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