Document Editing Problems

Merge Word Documents While Preserving Headers and Footers

Huda QurayshiHuda Qurayshi Nov 20, 2026 869 views

Question details

Combine several Word documents into one editable file while preserving their different headers and footers.

Merge Word Documents While Preserving Headers and Footers
Product
Microsoft Word
Device & OS
not provided
Scenario
The user wants to merge documents without manually inserting each file and managing section breaks.
Observed behavior
The desired result is a single editable document that retains each source document's header and footer layouts.
Before you start

Put the source documents in the order you want them to appear, and check whether they contain multiple sections or different first-page and odd/even headers. Word does not offer a standard one-click batch merge that automatically preserves all headers and footers.

Solution 1Recommended

Use a VBA macro designed to merge Word documents

Use this approach to reduce repetitive insertion and section-break work when a suitable macro is available.

Choose a macro specifically designed to merge files while retaining section formatting. Results depend on the macro and the source documents, so headers, footers, styles, and page settings may still need adjustment.

1
Find and review a suitable macro

Obtain a document-merging VBA macro from a trusted source and review its instructions for file selection, ordering, and section-format preservation.

2
Install the macro

In desktop Word, open the Visual Basic Editor from the Developer tab, insert a module, and paste the macro code according to its instructions. The Developer tab may need to be enabled in Word settings.

3
Run a test merge

Open Developer > Macros, select the installed macro, and choose Run. Follow its prompts to select copies of the source documents in the required order.

4
Inspect and save the result

Use Print Layout and open the headers and footers in each section to check their content, links, and page settings. Correct any differences and save the merged document as a DOCX file.

Use a VBA macro designed to merge Word documents
Macro availability and security: Only run code you trust and that your organization's security settings permit. A suitable macro is not included here, and no macro can be assumed to preserve every document layout without testing.
Free Microsoft Office alternative

Edit merged documents with WPS Writer

WPS Office is a free, lightweight Office alternative with a familiar interface and support for Word formats, making it easy to move existing documents into WPS Writer. You can edit merged documents and review their headers and footers, although WPS does not fix Word's batch-merge limitation or guarantee automatic preservation of every section layout.

Review and edit headers and footers in an editable documentOpen and save documents in Microsoft Word DOC and DOCX formatsUse a familiar interface for everyday document editingMove existing Office files to a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can Word merge several documents and automatically keep all their headers and footers?

Word does not provide a standard one-click batch merge that automatically preserves every document's headers and footers. You can use section breaks or test a VBA macro designed for this task.

Why does a new section show the previous document's header?

The section may be linked to the previous one. Double-click its header or footer and turn off Link to Previous; check the footer and any first-page or odd/even variants separately.

Will Text from File copy every header and footer?

Not necessarily. Use Insert > Object > Text from File to insert document content, then inspect each section and copy any missing header or footer content from the source file.

Do I need desktop Word to run a VBA merge macro?

Yes. Use a desktop version of Word that supports VBA, and check that macros are permitted by your security settings. Open Developer > Macros to run an installed macro.