Merge Word Documents While Preserving Headers and Footers
Question details
Combine several Word documents into one editable file while preserving their different 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.
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.
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.
Obtain a document-merging VBA macro from a trusted source and review its instructions for file selection, ordering, and section-format preservation.
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.
Open Developer > Macros, select the installed macro, and choose Run. Follow its prompts to select copies of the source documents in the required order.
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.

Merge the documents with section breaks in Word
Use the manual method when a suitable macro is unavailable or when you need to control each section individually.
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.

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.




