Skip to main content

How to merge multiple documents and keep format in word?

Sometimes we may need to merge multiple documents into one when you are using the Microsoft Word applications. In Word, you can merge multiple Word documents into one with one of following tricky ways:


Merge multiple documents into one document with Insert Text from File function

You can merge multiple documents into one document by using the Text from File function in Word, but by doing this, you will lost 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 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. Try it FREE for 60 days! 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's folder, 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 are 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 multiple Word documents as Firefox, Chrome, Internet Explore 10!

You may be familiar to view multiple webpages in Firefox/Chrome/IE, and switch between them by clicking corresponding tabs easily. Here, Office Tab supports similar processing, which allow you to browse multiple Word documents in one Word window, and easily switch between them by clicking their tabs. Click for full features free trial!
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  /  Inquire for Information based on Document, 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 our 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 swiftly to any location  /  auto-insert repetitive text  /  seamlessly toggle between document windows  /  11 Conversion Tools...

๐Ÿ‘‰ Want to try these features? Kutools for Word offers a 60-day free trial, with no limitations! ๐Ÿš€
Free Download     Read More     Buy 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
This comment was minimized by the moderator on the site
Thanks for sharing this.. VBA code is working for me.
This comment was minimized by the moderator on the site
Link exchange is nothing else but it is simply placing the other persons web site link on your page at proper place and other person will also do same for you. cbgedcededacebdd
This comment was minimized by the moderator on the site
Dear,
  • [i][b] I m vry fne to see ur steps or desgins. I get many knwlgde frm dis. For dis i thnk to very. I never forget[/i][/b]
This comment was minimized by the moderator on the site
VUA tor bap vua tor choddo gushthi vua totototototto
This comment was minimized by the moderator on the site
Does KUTOOL provides facility to merge two word files without changing format of each word file through C# or any language supported by .Net ?
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations