File Cannot Open

Fix Word Mail Merge Errors with Macro-Enabled Excel Workbooks

Nimra MalikNimra Malik Nov 18, 2026 869 views

Question details

Resolve a Word mail merge error when using a macro-enabled Excel workbook as the recipient list.

Fix Word Mail Merge Errors with Macro-Enabled Excel Workbooks
Product
Microsoft Word and Microsoft Excel
Device & OS
not provided
Scenario
A Word mail merge document uses an Excel macro-enabled workbook as its data source.
Observed behavior
Word reports that the workbook contains unreadable content and cannot be opened.
Before you start

Locate the current workbook and try opening it directly in Excel to check whether the file itself opens. Confirm that the recipient data is on a worksheet with clear column headers.

Solution 1Recommended

Reconnect the Excel workbook as the Word data source

Use this method if the workbook was moved, renamed, or opens normally in Excel.

1
Open the merge document

Open the mail merge document in Word. If an SQL prompt appears for an outdated or untrusted data connection, select No to open the document without connecting to that source.

2
Select the current workbook

Go to Mailings > Select Recipients > Use an Existing List, browse to the current .xlsm workbook, and select Open.

3
Choose the recipient sheet

In the table selection dialog, choose the worksheet containing the recipient list and confirm that the first row contains headers if applicable.

4
Test the merge

Select Mailings > Preview Results to check the recipient records, then save the Word document.

Reconnect the Excel workbook as the Word data source
About the SQL prompt: Word may ask to run an SQL command to retrieve recipient data when reopening a merge document. Allow the connection only if you trust the document and data source.
Free Microsoft Office alternative

Work with documents and spreadsheets in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Office documents and spreadsheets. Its format compatibility can make migration easier, although it does not repair Word's mail merge connection.

Open and edit Microsoft Word .docx and Excel .xlsx filesReview recipient lists in WPS SpreadsheetUse a familiar interface to make moving from Office easierWork with a free, lightweight office suite
QA img-9

Frequently Asked Questions

Can Word mail merge use an .xlsm workbook?

Yes. A macro-enabled Excel workbook can be used as a mail merge data source, so converting it is not normally necessary. In Word, select it through Mailings > Select Recipients > Use an Existing List.

What should I do if the recipient workbook was moved?

Open the Word document without connecting to the old source if necessary, then go to Mailings > Select Recipients > Use an Existing List and browse to the workbook's current location.

How can I check whether the workbook is corrupted?

Try opening it directly in Excel. If it fails, go to File > Open > Browse, select the file, and choose Open and Repair from the arrow next to Open.

Should I allow the SQL command when Word opens my merge document?

Allow it only if you trust the document and its data source. Select No if the connection is outdated or untrusted, then reconnect the correct workbook from the Mailings tab.

Will saving as .xlsb always fix the connection?

No. Saving an Excel Binary Workbook through File > Save As is a troubleshooting option, not a guaranteed fix. Word's ability to connect can depend on the installed Office data components.