Outlook Calendar To Excel

I need to produce a weekly report detailing what work I have carried out. I diligently record this in my Outlook calendar. My weekly report needs to be submitted in Microsoft Excel.

The following macro will pull the entries for the last seven days from my calendar and store it in Excel format.


This macro should be placed in an excel spreadsheet and from there it will connect to Microsoft Outlook.

Stepping through the code:

  • Get the dates for seven days ago and today then build a restriction clause to filter the calendar.
  • Create a connection to my default calendar, sort the events by start date and apply the restriction on the dates.
  • Clear the contents of the current worksheet – from A2 to the bottom right.
  • Loop through each calendar entry
  • Use either A2 or the first empty row below A2
  • Write the relevant calendar attributes in the appropriate format on the selected row.
  • End Loop
  • Set the cursor to the top of the sheet.

Any problems, comments or suggestions for other macros/tips; let me know in the comments below.

One thought on “Outlook Calendar To Excel”

Leave a Reply

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)