Solved

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

Posted on 2008-11-01
9
332 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
Comment Utility
Hi, Mswetsky.

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

Author Comment

by:Mswetsky
Comment Utility
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
Comment Utility
Got it.  Does the script need to delete the calendar if already exists in your mailbox?
0
 
LVL 1

Author Comment

by:Mswetsky
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 76

Expert Comment

by:David Lee
Comment Utility
Snapshot.
0
 
LVL 1

Author Comment

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

Author Comment

by:Mswetsky
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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: …

762 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

10 Experts available now in Live!

Get 1:1 Help Now