How to Merge Multiple MS Word Documents Into One Doocument

Louis Rossi 0 Reputation points
2026-11-23T16:22:21.32+00:00

Using a MacBook (circa 2019) and OS version 15.8.3, I am trying to find an easier way to merge multiple MS Word documents into one master document. In some cases, there may be more than 100 files that I would like merged. I've searched online and found Apple Automator and Shortcuts apps don't support this. My system will not support an upgrade to latest OS due to its age.

Claude referred me to inserting a file using Object but that would allow me to select more than one file and it inserted the one file as an object which is not what I need. I would like it all to be editable text.

It then mentioned for me to download an app called PANDOC but I would prefer not to download anything that I'm not familiar with.

I really don't want to have to cut or copy and paste every single Word document one at a time.

Microsoft 365 and Office | Word | For home | MacOS
0 comments No comments

2 answers

Sort by: Oldest
  1. Marcin Policht 113.9K Reputation points MVP Volunteer Moderator
    2026-11-23T16:29:41.2566667+00:00

    Likely the fastest way to merge 100 or more Word documents into one editable file on your Mac without downloading third-party apps is to use a VBA Macro inside Microsoft Word. While Word for Mac has an Insert > Text from File feature, the Mac version only lets you select one file at a time, unlike Windows. Additionally, clicking "Object" directly embeds the file as an icon rather than editable text—you have to click the small dropdown arrow next to Object to find Text from File. Because doing that 100 times manually is tedious, a short macro built directly into Word will automate that exact process across an entire folder in seconds.

    For the built-in Word macro approach, which is recommended for handling over 100 files using Word's native scripting tool, start by putting all the Word files you want to merge into a single folder on your Mac and renaming them with numbers at the start, such as 001_Intro.docx and 002_Chapter1.docx, so they merge in your exact preferred order. Next, launch Microsoft Word, open a new blank document, and navigate to Tools > Macro > Macros... in the top Mac menu bar. Type a name like MergeAllDocs into the Macro name box and click the plus button to create it. Delete whatever placeholder text appears in the editor window and paste the following script:

    Sub MergeAllDocs()
        Dim FolderPath As String
        Dim FileName As String
        Dim FileList() As String
        Dim Count As Integer
        Dim i As Integer
        Dim j As Integer
        Dim Temp As String
    
        ' Prompt user to select a folder
        FolderPath = MacScript("return POSIX path of (choose folder with prompt ""Select the folder containing your Word documents:"")")
        If FolderPath = "" Then Exit Sub
    
        ' Gather all .docx and .doc files
        FileName = Dir(FolderPath & "*.doc*")
        Count = 0
        Do While FileName <> ""
            Count = Count + 1
            ReDim Preserve FileList(1 To Count)
            FileList(Count) = FileName
            FileName = Dir()
        Loop
    
        If Count = 0 Then
            MsgBox "No Word documents found in that folder."
            Exit Sub
        End If
    
        ' Sort files alphabetically so numbering works properly
        For i = 1 To Count - 1
            For j = i + 1 To Count
                If FileList(i) > FileList(j) Then
                    Temp = FileList(i)
                    FileList(i) = FileList(j)
                    FileList(j) = Temp
                End If
            Next j
        Next i
    
        ' Insert each file as editable text with a page break between them
        Application.ScreenUpdating = False
        For i = 1 To Count
            Selection.InsertFile FileName:=FolderPath & FileList(i), ConfirmConversions:=False
            If i < Count Then
                Selection.InsertBreak Type:=wdPageBreak
            End If
        Next i
        Application.ScreenUpdating = True
    
        MsgBox "Successfully merged " & Count & " documents!"
    End Sub
    

    Once the code is pasted, close the editor window using Command + Q or the red close button to return to your document, go back to Tools > Macro > Macros..., select MergeAllDocs, and click Run. When prompted, pick the folder holding your documents and click Choose, and Word will pull all of them in as standard, editable text. Note that if you do not want a new page forced between every document, simply delete the three lines starting with If i < Count Then through End If before running the script.

    Alternatively, if you only care about the raw words and do not need fonts, bolding, tables, or images preserved, you can use a built-in macOS command-line tool called textutil that merges .docx files instantly without requiring any third-party downloads. To do this, open the Terminal app located in Applications > Utilities, type cd with a space after it, drag your folder of Word documents directly into the Terminal window, and press Return. Then, paste the command below and press Return to generate a new editable file named MasterDocument.docx inside that same folder:

    textutil -cat docx *.docx -output MasterDocument.docx
    

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?


  2. John Korchok 237.4K Reputation points Volunteer Moderator
    2026-11-23T19:55:57.77+00:00

    I've written a free add-in for Word for Mac and Windows that creates master documents from a folder full of numbered Word files. Here's my article about it with a download link: Automated Word Master Documents - Cool Code

    Please note my warning that master documents are known to be unstable and are not suitable for long-term document editing. The add-in makes it easy to create a temporary master document for printing or creating a PDF, after which the master should be discarded.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.