Formatting Issues

Fix Blank Lines in Microsoft Word Mail Merge Labels

Adam DavisAdam Davis Nov 22, 2026 868 views

Question details

The user needs to remove unwanted blank lines from mail merge labels when company or person fields are empty.

Product
Microsoft Word
Device & OS
not provided
Scenario
Creating labels from a mail merge main document and a data source with some empty company-name or person-name fields.
Observed behavior
Blank lines appear on later label pages even though empty fields appear to be suppressed on earlier pages.
Before you start

Open the original mail merge main document and locate its connected data source. Check which records and fields produce blank lines so you can compare them with the label layout.

Solution 1Recommended

Inspect the label layout and empty source fields

Use this approach to find hidden characters or spacing that may prevent Word from suppressing an empty field line.

1
Open the main document

In Word, open the original label mail merge document, not the document produced by Finish & Merge. Go to Mailings and confirm that the data source is connected.

2
Show formatting marks

On the Home tab, select the Show/Hide ¶ button. Inspect the lines containing the company and person merge fields for extra paragraph marks, spaces, tabs, or manual line breaks.

3
Clean up the field lines

Remove unintended characters from lines that should disappear when a field is empty. Keep the merge fields and any Next Record fields needed to advance between labels.

4
Check the source records

Open the data source in its original application and inspect the affected company-name and person-name cells. Remove spaces or other characters from cells intended to be empty, then save the data source.

5
Preview and merge again

Return to the main document and use Mailings > Preview Results to inspect affected records. Select Finish & Merge > Edit Individual Documents, then check both early and later label pages.

Use the main document for merge commands: An already merged document is not a mail merge main document. Running a mail merge command on it can produce runtime error 5852.
Free Microsoft Office alternative

Work with Label Documents in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with documents and spreadsheets. Its Microsoft Office format compatibility makes it easier to move existing files into WPS, although it does not fix Word-specific mail merge behavior.

Edit label-related documents in a familiar word processorOpen and save Microsoft Word DOCX and Excel XLSX filesReview spreadsheet data alongside document layoutsMove existing Office files into a lightweight suite
microsoft office alternative - wps office

Frequently Asked Questions

Why do blank lines appear when a merge field looks empty?

The source cell may contain spaces, or the label line may contain extra spaces, tabs, paragraph marks, or manual line breaks. Check the source cell and turn on Home > Show/Hide ¶ in the main document.

Why does error 5852 appear when I run a merge command?

The command may have been run on the completed merge output rather than the mail merge main document. Open the original label document and use its Mailings tab instead.

How can I check labels on later pages?

In the main document, use Mailings > Finish & Merge > Edit Individual Documents. Inspect the resulting document, including pages containing records with empty company or person fields.

What should I share if the blank lines persist?

Share anonymized copies of the mail merge main document and its data source for investigation. Identify records where the company or person field is empty and a blank line appears.