Office Settings & Configuration

How to Add Outlook 365 Object Library to Access 2010 VBA

Kushani NimanthikaKushani Nimanthika Oct 16, 2026 871 views

Question details

The user needs to add the Outlook 365 Object Library to Microsoft Access 2010 VBA but faces issues getting the reference to stay selected when manually copying the .olb file.

How to Add Outlook 365 Object Library to Access 2010 VBA
Product
Microsoft Access 2010, Outlook 365
Device & OS
Windows 7
Scenario
Configuring VBA references in Access 2010 to automate or interface with Microsoft Outlook.
Observed behavior
Copying the msoutl.olb file to the computer and attempting to add it via Tools > References fails; the reference does not remain selected.
Before you start

Verify that a compatible version of Microsoft Outlook is fully installed on your machine, as standalone .olb files cannot be referenced without the parent application.

Solution 1Recommended

Add Microsoft Outlook Object Library via VBA References

The standard method to add the Outlook Object Library when Microsoft Outlook is properly installed on the local machine.

To use early binding and access IntelliSense for Outlook objects, the full Outlook application must be installed. Simply copying the msoutl.olb file from another computer will not work because the library must be properly registered in the Windows Registry by the Office installer.

1
Open Visual Basic Editor

Open your Microsoft Access database and press Alt + F11 on your keyboard to launch the Visual Basic Editor.

2
Navigate to References

Click on 'Tools' in the top menu bar and select 'References' from the dropdown menu.

3
Select the Object Library

Scroll through the 'Available References' list and check the box next to 'Microsoft Outlook 16.0 Object Library' (or the version corresponding to your Office 365 installation).

4
Apply and Save

Click 'OK' to apply the reference. You can now declare and use Outlook objects in your VBA project.

Add Microsoft Outlook Object Library via VBA References
Successful Registration: If the reference remains checked after clicking OK, the library is properly registered and ready for use in your VBA modules.
Free Microsoft Office alternative

Looking for a Lightweight, Hassle-Free Office Suite?

Dealing with complex VBA object library registrations and heavy MS Office standalone installations can be tedious. If you are looking for a reliable, lightweight alternative for your standard document, spreadsheet, and presentation tasks, WPS Office is an excellent choice.

Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx)Lightweight installation footprint compared to heavy traditional Office suitesIncludes built-in VBA support in advanced versions for necessary macro automationFamiliar, easy-to-use interface that requires no steep learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't copying the msoutl.olb file fix my missing reference error?

Copying the .olb file alone is insufficient because VBA relies on the Windows Registry to locate and utilize COM objects. The full Microsoft Outlook installer properly registers the object library, which a simple file copy does not accomplish.

What is the difference between early binding and late binding in Access VBA?

Early binding requires checking a specific library in the Tools > References menu, which enables IntelliSense but restricts your database to that specific library version. Late binding declares objects generically at runtime using CreateObject, removing the need for strict library references and avoiding version compatibility errors.

Can I automate Outlook emails if I am using Access Runtime instead of the full Access version?

Yes, but you must ensure the target machine running the Runtime either has the matching version of Outlook installed locally, or you must use late binding in your VBA code to prevent the database from crashing due to a missing early-bound reference.