Solved

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

Posted on 2008-11-01
9
367 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
[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
  • 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
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.

 
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SBS 2011 - Exchange - Can't received internal 1 40
Outbound messages randomly are blank. 7 57
Can we copy email from Inbox to its folder in Outlook 2010? 2 33
Outlook 2016 10 44
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
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…

726 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