Convert Early Binding VBA to Late Binding VBA : Excel to Outlook Contacts

To use Late binding, you should declare all your Outlook-specific objects as Object:

Dim olApp As Object, olNamespace As Object, olFolder As Object, olConItems As Object

Then:

Set olApp = CreateObject("Outlook.Application")

This will make each computer create the olApp object from the Outlook library that is installed on it. It avoids you to set an explicit reference to Outlook14 in the workbook that you will distribute (remove that reference from the project before distributing the Excel file).

Hope this helps 🙂

Leave a Comment