Read ICS file using Excel VBA with Outlook 2013/2016

burtachame

New Member
Joined
Nov 22, 2016
Messages
4
Hi All,

Does anyone here able to read an ICS file(with Outlook 2013 or 2016) using VBA in Excel?


Basically I have this ICS file, I would like to evaluate all the events under it. I just need to get the data such as the date start and date end of an event. Also, I need to generate the recurring events.


I was able to generate a code that works with Outlook 2007/2010

my code snippet:
Code:
Dim items
Dim ol, MAPI, cal_ics As Object
    
Set ol = CreateObject("Outlook.Application")
Set MAPI = ol.GetNamespace("MAPI")
Set cal_ics = MAPI.opensharedfolder("C:\[path]\[ics_file]")

Set items = cal_ics.items
items.Sort "[Start]"
items.IncludeRecurrences = True


The problem I have right now is that when your Outlook is either 2013 or 2016, The OpenSharedFolder method is not working anymore.

I have read other forums and found out that this this seems to be a challenge. They mentioned something about Redemption but this just would not work for me.

I am just being optimistic that maybe someone here already encountered and solved this problem.

I would be very grateful if someone can help me out. :(

Thanks in advance. ;)
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,216,158
Messages
6,129,207
Members
449,493
Latest member
JablesFTW

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top