Share via

How do I merge multiple word documents ?

Anonymous
2025-05-15T16:34:06+00:00

I have a list of 25 word documents - how do I merge these into a single document ?

Microsoft 365 and Office | Word | For home | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Paul Edstein 82,861 Reputation points Volunteer Moderator
    2025-05-20T22:45:25+00:00

    For a macro to automate the process, whilst accommodating potential differences in Styles and page layouts, etc. see:

    Combine Multiple Word Documents

    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-05-20T16:37:20+00:00

    Hi Niels,

    We have noticed that you have not replied to our last response. We would like to know if the issue you have raised to us is still on-going. If yes, please reply to the thread so we can continue troubleshooting your concern. 

    Thank you. 

    Regards,

    Chan G

    Microsoft Community Moderator

    0 comments No comments
  2. Jim G 134K Reputation points MVP Volunteer Moderator
    2025-05-18T14:34:13+00:00

    Hi Chan G

    There seems to be at least one error in your suggested VBA code,

    When putting VBA or other code into the forum, please remember to change the format from Standard to Code Block using the toolbar above your message.

    A better way to distribute VBA code is to make a sample document and distribute that:
    Why a sample file is important for troubleshooting - - - - - - - and how to do it.

    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Anonymous
    2025-05-15T21:26:47+00:00

    Hi Niels,

    Thank you for using Microsoft products and making community posts.

    I understands the importance of resolving this issue, Don’t worry I will be helping you with this following steps.

    Method 1: Using Insert > Text from File

    This method allows you to merge multiple documents into one without copying and pasting manually.

    1. Open a new or existing Word document (where you want to merge all files).
    2. Go to the "Insert" tab in the ribbon.
    3. Click "Text from File" (found under Object dropdown).
    4. Select the first batch of Word documents and click Insert.
    5. Repeat this process until all documents are added.

    Method 2: Manually Copy & Paste (Quick for Small Documents)

    If your documents contain different formatting or styles, it might be best to manually copy & paste to ensure consistency.

    1. Open each document and select all text (Ctrl + A or Cmd + A on Mac).
    2. Copy (Ctrl + C or Cmd + C).
    3. Paste (Ctrl + V or Cmd + V) into the main document.

    You can also try these more advance steps below:

    Method 3: Using VBA (Automated for Many Documents)

    If you have 25+ files, manually inserting each one can be tedious. Using VBA code in Word can automate the process:

    1. Open Word and press ALT + F11 to open the VBA editor.
    2. Click InsertModule.
    3. Paste the following code:

    vbaSub MergeDocuments() Dim mainDoc As Document Dim fileDialog As FileDialog Dim fileName As String Dim i As Integer

    Set mainDoc = ActiveDocument
    Set fileDialog = Application.FileDialog(msoFileDialogFilePicker)
    
    With fileDialog
        .AllowMultiSelect = True
        .Filters.Add "Word Documents", "\*.docx"
        If .Show = -1 Then
            For i = 1 To .SelectedItems.Count
                fileName = .SelectedItems(i)
                mainDoc.Range.InsertFile fileName
            Next i
        End If
    End With
    

    End Sub

    1. Run the macro, select your 25 files, and Word will merge them automatically.

    Please feel free to let me know how it goes.

    Chan G

    Microsoft Community Moderator

    0 comments No comments