How to user newer Microsoft Office Libraries

Add-in Express™ Support Service
That's what is more important than anything else

How to user newer Microsoft Office Libraries
Andrew Lockwood

Posts: 52
Joined: 2014-12-29
This may be a very naive question, but since AddIn Express is built around the Office 2000 Object Model, how do I use the Office 2007 Object Model instead?

For example,


IExpl : _Explorer;

IExpl := OutlookApp.ActiveExplorer();

throws an error because IExpl is an Outlook2007 Explorer, but OutlookApp.ActiveExplorer returns an Outlook2000 Explorer.

Is it possible to use the Office 2007 Object Model, or am I stuck with using the Office 2000 model?


Posted 12 Sep, 2015 06:15:12 Top
Andrei Smolin

Add-in Express team

Posts: 16198
Joined: 2006-05-11
Hello Andrew,

You need to import type library for Outlook 2007 and use it; an example of importing and using the type library for Outlook 2010 is given at

The code line above will bounce unless you cast the right-side expression to Outlook2007._Explorer.

Hope this helps.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 14 Sep, 2015 06:19:30 Top