VBA & Macro Problems

Fix Microsoft ACE OLE DB Provider Cannot Be Found in Excel VBA

Phi Hung VoPhi Hung Vo Nov 2, 2026 869 views

Question details

The user encounters a 'provider cannot be found' error when attempting an ADO VBA connection using the Microsoft ACE OLE DB provider in Excel.

How to Fix 'Microsoft ACE OLE DB Provider Cannot Be Found' in Excel VBA
Product
Microsoft Excel
Device & OS
not provided
Scenario
Running a VBA script that connects to a database using ADO and requires the Microsoft ACE OLE DB provider.
Observed behavior
Excel VBA returns an error stating that the Microsoft ACE OLE DB provider cannot be found, despite the Microsoft ActiveX Data Objects library being enabled.
Before you start

Verify whether your installed version of Microsoft Office is 32-bit or 64-bit, as downloading the matching Microsoft Access Database Engine is required to resolve this issue.

Solution 1Recommended

Install the Matching Microsoft Access Database Engine

The most common cause of this error is a missing ACE OLE DB provider or a mismatch between the Office architecture (32-bit/64-bit) and the installed database engine.

Even if the ActiveX library is enabled in VBA, the actual OLE DB driver must be installed on your Windows system. You must install the version that matches your Excel installation.

1
Check Excel Architecture

Open Excel and go to File > Account > About Excel. Note whether your installation is 32-bit or 64-bit at the top of the dialog box.

2
Download the Database Engine

Go to the official Microsoft website and search for 'Microsoft Access Database Engine Redistributable'. Click the download button.

3
Select the Correct Version

Choose the installer file that matches your Excel architecture ('AccessDatabaseEngine.exe' for 32-bit or 'AccessDatabaseEngine_X64.exe' for 64-bit).

4
Install and Restart

Run the downloaded installer, complete the setup wizard, and then completely restart your computer before attempting to run your Excel VBA script again.

Install the Matching Microsoft Access Database Engine
Tip: Ensure you are using the correct connection string in your VBA code. For newer ACE providers, the string usually begins with 'Provider=Microsoft.ACE.OLEDB.12.0;' or '16.0;'.
Free Microsoft Office alternative

Try WPS Office for a Seamless Spreadsheet Experience

If complex driver dependencies and VBA configuration issues in Microsoft Excel disrupt your workflow, consider trying WPS Office. It provides a lightweight, highly compatible alternative with robust support for standard spreadsheet functions and Excel file formats.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package.
  2. 2. Install the Software: Run the installer and follow the quick setup wizard to install WPS Office on your device.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing Excel files to continue your work without missing a beat.
Free and lightweight to download and installHighly compatible with Microsoft Excel formats (.xlsx, .xls, .csv)Familiar user interface requiring no learning curveSeamless file migration and reliable spreadsheet performance
microsoft office alternative - wps office

Frequently Asked Questions

How do I check if my Excel is 32-bit or 64-bit?

Open Excel, go to File > Account, and click on 'About Excel'. The bit architecture (32-bit or 64-bit) will be displayed clearly at the end of the first line of text in the window that appears.

What is the Microsoft ACE OLE DB Provider?

It is a set of components that facilitate data transfer between Microsoft Office files (such as Access databases or Excel spreadsheets) and other applications. It is frequently required when running VBA ADO connections.

Why does the error persist after enabling the ActiveX Data Objects library?

Enabling the ActiveX library merely allows VBA to understand and use ADO syntax. The actual ACE OLE DB provider acts as the engine driver; if the driver is not physically installed on your Windows system, the connection will still fail.