Skip to main content

How to merge multiple documents and keep format in Word?

Author: Amanda Li Last Modified: 2024-07-04

Sometimes, you may need to merge multiple documents into one when using Microsoft Word. Ensuring that the formatting is preserved during this process can be challenging. Fortunately, there are several methods to effectively merge multiple Word documents while maintaining their original formatting.

In this tutorial, we will explore the following methods to help you seamlessly combine your documents:


Merge multiple documents into one document with Text from File option

You can merge multiple documents into one document by using the Text from File function in Word, but by doing this, you will lose the format of documents after merged.

1. Create a new Word document you will place the merged documents, and then click Insert > Object > Text from File. See screenshot:

2. In the opening Insert File dialog box, please (1) open the folder containing documents you will merge; (2) select the documents you will merge; and then (3) click the Insert button. See screenshot:

Tip: Holding Ctrl key, you can select multiple documents with clicking them one by one; holding Shift key, you can select multiple adjacent documents with clicking the first one and the last one.

3. If documents you need to merge are saved in different folders, please repeat above Step 1-2 as your need.

Note: You can't order documents in merged file, otherwise you insert them one by one.

Quickly merge multiple Word documents from many folders in bulk, with specified order

Kutools for Word releases a fantastic Merge feature to help users quickly merge multiple Word documents from many folders. This feature will not only reserve original documents' format in merged file, but also merge documents by your specified order.


ad merge documents dialogbox


Merge multiple documents into one document with VBA

Alternatively, you can use VBA to merge multiple documents into one in Word.

1. Move all Word documents you will merge into the same folder.

2. Rename the Word documents with a series of sequence names. (1) Right click a document and select Rename from the context menu, and then type a new name, such as Part1; (2) Repeat to rename other documents. See screenshot:

3. Double click to open the document you will place at the beginning of merged file.

4. Press Alt + F11 keys together to open the Microsoft Visual Basic for Application window.

5. Click Insert > Module, and then paste below VBA code into the new Module window;

VBA: merge multiple documents in Word

Sub MergeDocuments()
Application.ScreenUpdating = False
MyPath = ActiveDocument.Path
MyName = Dir(MyPath & "\" & "*.docx")
i = 0
Do While MyName <> ""
If MyName <> ActiveDocument.Name Then
Set wb = Documents.Open(MyPath & "\" & MyName)
Selection.WholeStory
Selection.Copy
Windows(1).Activate
Selection.EndKey Unit:=wdLine
Selection.TypeParagraph
Selection.Paste
i = i + 1
wb.Close False
End If
MyName = Dir
Loop
Application.ScreenUpdating = True
End Sub

Note: This VBA can only merge Word documents whose file extensions are docx. If you need to merge documents (.doc), please replace docx in the code MyName = Dir(MyPath & "\" & "*.docx") to doc.

6.Click the Run button or press F5 key to apply the VBA.

Note: you have to rename the documents with a series of sequence names, otherwise the documents may be disordered or lost in the merged file.


Merge multiple documents into one document and keep format with Kutools for Word

After you installed Kutools for Word, you don't need to create a new blank document, nor put the document into the same folder. With Merge of Kutools, you can quickly merge multiple documents into one in word. Please do as follows:

Kutools for Word is the ultimate Word add-in that streamlines your work and boosts your document processing skills. Get It Now!

1. Click Kutools Plus > Merge. See screenshot:
doc merge documents 01

2. In the opening Merge Documents dialog box, please add documents you will merge: (1) Click Add Files button; (2) In the Browse dialog box open folder containing documents you will merge; (3) holding Ctrl or Shift key to select these documents; and then (4) click the OK button. See screenshot:

Tip:
(1) If you need to merge documents that are saved in different folders, please repeat this step to add them one by one;
(2) You can also add all documents saved in one folder in bulk by the Add Folder button.

3. Now you return to the Merge Documents dialog box, please (1) order these documents by Move Up and Move Down buttons; (2) specify a break between documents from the Break between documents drop down list; and then (3) click the Merge button. See screenshot:

Now all specified Word documents are combined into a new document as below screenshot shown:
ad merge documents results v8.9

Note: FYI, original formatting of all documents you merged is reserved in the merged result.

Of course, you can open all Word documents firstly, and then merge them by manually copying and pasting.

Tabbed Browsing & Editing for Multiple Word Documents, Just Like in Chrome and Edge!

Just like browsing multiple webpages in Chrome, Safari and Edge, Office Tab lets you open and manage multiple Word documents in a single window. Switching between documents is now simple with a click on their tabs!
Try all features for free now!

Browse multiple word documents in one window as Firefox


Relative articles:

Best Office Productivity Tools

Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!

🤖 Kutools AI Assistant: Transform your writing with AI - Generate Content  /  Rewrite Text  /  Summarize Documents  /  Get Quick Answers, all within Word

📘 Document Mastery: Split Pages  /  Merge Documents  /  Export Selection in Various Formats (PDF/TXT/DOC/HTML...)  /  Batch Convert to PDF  /  Export Pages as Images  /  Print Multiple Files at once...

Contents Editing: Batch Find and Replace across Multiple Files  /  Resize All Pictures  /  Transpose Table Rows and Columns  /  Convert Table to Text...

🧹 Effortless Clean: Sweap away Extra Spaces  /  Section Breaks  /  All Headers  /  Text Boxes  /  Hyperlinks  /  For more removing tools, head to the Remove group...

Creative Inserts: Insert Thousand Separators  /  Check Boxes  /  Radio Buttons  /  QR Code  /  Barcode  /  Diagonal Line Table  /  Equation Caption  /  Image Caption  /  Table Caption  /  Multiple Pictures  /  Discover more in the Insert group...

🔍 Precision Selections: Pinpoint Specific Pages  /  Tables  /  Shapes  /  Heading Paragraphs  /  Enhance navigation with more Select features...

Star Enhancements: Navigate to Any Location  /  Auto-Insert Repetitive Text  /  Toggle Between Document Windows  /  11 Conversion Tools...

Kutools and Kutools Plus tabs on the Word Ribbon
👉 Want to try these features? Download Kutools for Word now! 🚀
 
Comments (21)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
When using the VBA code for merging multiple docx files, I got this debug error "Run-time error 5266. You can't paste this selection in a table" pointing at line "Selection.Paste" .Please help.

This comment was minimized by the moderator on the site
Dear Sir,
Can we track/identify the Content Control differences?
Thanks,
Hrishi
This comment was minimized by the moderator on the site
Does anyone know how I can build "HeadersFooters.LinkToPrevious (False)" into the VBA code?
This comment was minimized by the moderator on the site
Thank you so much Extend Office Team! Awesome tips! I can't describe how much your article helped me!
This comment was minimized by the moderator on the site
I read this article which is really helpful combine word documents
There are no comments posted here yet
Load More
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations