Solved

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

Posted on 2008-11-01
9
356 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
When you have clients or friends from around the world, it becomes a challenge to arrange a meeting or effectively manage your time. This is where Outlook's capability to show 2 time zones in one calendar comes in handy.
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…
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…

803 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