VBA & Macro Problems

Fix Outlook Object Library References in Access VBA

Huma Ashraf ChHuma Ashraf Ch Nov 27, 2026 869 views

Question details

Make an Access VBA application automate Outlook without depending on a specific Outlook object library version.

Fix Outlook Object Library References in Access VBA
Product
Microsoft Access VBA and Microsoft Outlook
Device & OS
not provided
Scenario
An Access application uses the Outlook 14.0 Object Library but may run on computers with a different Office version, such as Office 2013.
Observed behavior
The version-specific Outlook reference may be missing or cause the VBA project to fail on another computer.
Before you start

Confirm that Outlook is installed on each target computer. In Access, open the VBA editor and check Tools > References for a missing or version-specific Outlook object library reference.

Solution 1Recommended

Use late binding for Outlook objects in Access VBA

Remove the dependency on a specific Outlook object library version by creating Outlook objects at runtime.

Late binding declares Outlook variables as Object rather than as Outlook-specific types. It avoids a version-specific Outlook reference but does not guarantee compatibility with every Outlook configuration or feature.

1
Open the VBA editor

In Access, press Alt+F11 and open the module that automates Outlook.

2
Change Outlook declarations

Replace declarations such as Dim olApp As Outlook.Application and Dim mail As Outlook.MailItem with Dim olApp As Object and Dim mail As Object.

3
Create Outlook objects at runtime

Replace version-specific creation code with CreateObject. For example: Dim olApp As Object Dim mail As Object Set olApp = CreateObject("Outlook.Application") Set mail = olApp.CreateItem(0) mail.Display

4
Replace Outlook constants

Replace Outlook library constants in the affected code with their documented numeric values or locally defined constants. For example, CreateItem(0) creates a mail item without using olMailItem.

5
Remove the reference and test

In the VBA editor, select Tools > References and clear the Outlook object library reference. Select Debug > Compile, resolve any remaining Outlook-specific types or constants, and test the application on the target computer.

Use late binding for Outlook objects in Access VBA
Late-binding limitations: Late-bound objects do not provide the same editor autocomplete and compile-time type checking as early-bound Outlook objects. Outlook security settings or profile configuration may still affect automation.
Free Microsoft Office alternative

Work with Office documents using WPS Office

WPS Office is a free, lightweight alternative with a familiar interface and compatibility with common Microsoft Office formats, making it easier to move everyday document work. It does not fix Access VBA references or replace Outlook automation.

Open and edit common Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXUse a familiar interface for everyday document, spreadsheet, and presentation tasksWork in a lightweight office suite with free toolsKeep document work separate from the Access and Outlook VBA automation that requires Microsoft Office
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Outlook reference fail on another computer?

The Access VBA project may reference a specific Outlook object library version that is unavailable on the other computer. Check Tools > References in the VBA editor for a reference marked MISSING.

Can I remove the Outlook reference immediately?

First change Outlook-specific declarations and constants to late-bound equivalents. Then clear the reference under Tools > References and use Debug > Compile to find remaining dependencies.

Does late binding mean Outlook is no longer required?

No. CreateObject("Outlook.Application") still requires Outlook to be installed and available on the computer running the Access application.

What should I use instead of the olMailItem constant?

Use its numeric value, 0, as in olApp.CreateItem(0), or define a local constant with that value. This avoids relying on the Outlook library for that constant.