Query Microsoft Exchange Calendars

Posted on 2014-11-05
Last Modified: 2014-11-10
Hi Experts, just checking whether there is a way of querying the contents of users calendars and populating a public folder or Excel spreadsheet or text file or using ASP.NET/VB.NET. In our case we want to query all the appointments/meetings for the sales team and put them in one place for the management to see their movements without manual intervention. Is this possible?
Question by:takwirirar
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
1 Comment
LVL 24

Accepted Solution

Phillip Burton earned 500 total points
ID: 40423762
Yes - to get your relevant calendar folder, use this code:

    Set nms = Application.GetNamespace("MAPI")
    Set fld = nms.Folders("NAME").Folders("Calendar") 

Open in new window

And then loop through the items in that folder:

for each itm in fld.Items
   debug.print itm.Start, itm.End, itm.Subject

Open in new window

There will be some error-checking you will need to add, and exporting it into the spreadsheet or text file etc., but those are the basics.

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
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…

729 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