Log in
x
or
x
x
Register
x

or
0
0
0
s2smodern

How to split document into multiple documents in word?

If you have a massive word document which you need to split into multiple documents, take a few minutes to read this tutorial. This tutorial will show you two methods for splitting a document into multiple documents.

Split Word document by specified delimiter with VBA

Split Word document by page with VBA

Split Word document by heading/page/section break/page break with using Kutools for Word

Easily split one Word document to multiple ones by page, section/page break, or heading at once!

Comparing to splitting a Word document by copying and pasting, Kutools for Word will ease you work, and improve your work efficiency dramatically by its Split feature, which can quickly split current opening Word document to multiple ones by page, by section break, by page break, or by Heading 1 as you need. Click for 60-day free trial!
ad split documents by page

Kutools for Word: Add 100 New Advanced Features to Word 2003/2007/2010/2013/2016.
Office Tab: Enable Tabbed Editing and Browsing in Office, Just Like Chrome, Firefox, IE 8/9/10.
Classic Menu for Office: Bring Old Look of Office 2003 Back to Office 2007, 2010, 2013 and 2016.

arrow blue right bubble Split Word document by specified delimiter with VBA

Instead of splitting document into multiple documents manually, this method will introduce a VBA to split a Word document by the specified delimiter in Word. Please do as follows:

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

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

VBA: Split Word Document into Multiple Documents by Delimiter

Sub SplitNotes(delim As String, strFilename As String)
Dim doc As Document
Dim arrNotes
Dim I As Long
Dim X As Long
Dim Response As Integer
arrNotes = Split(ActiveDocument.Range, delim)
Response = MsgBox("This will split the document into " & UBound(arrNotes) + 1 & " sections.Do you wish to proceed?", 4)
If Response = 7 Then Exit Sub
For I = LBound(arrNotes) To UBound(arrNotes)
If Trim(arrNotes(I)) <> "" Then
X = X + 1
Set doc = Documents.Add
doc.Range = arrNotes(I)
doc.SaveAs ThisDocument.Path & "\" & strFilename & Format(X, "000")
doc.Close True
End If
Next I
End Sub
Sub test()
'delimiter & filename
SplitNotes "///", "Notes "
End Sub

3. Then click Run button or press F5 key to apply the VBA.

4. In the popping out Microsoft Word document, please click the Yes button to go ahead.

Note:
(1) Be sure to add your delimiter as the same as "///" in the sub test to the document between each section of text you wish to separate. Also, you can change "///" to any delimiters to meet your need.
(2) You can change the documents "Notes" in the sub Test to suit your needs.
(3) And the splitting documents will be saved to the same place with the original file.
(4) You do not need to add delimiter to the end of the original file, if you do, there will be a blank document after splitting.


arrow blue right bubbleSplit Word document by page with VBA

Here is another VBA to help you quickly split one Word document to multiple by page in Word. Please do as follows:

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

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

VBA: Split Document into Multiple Documents by Page in Word

Sub SplitIntoPages()
Dim docMultiple As Document
Dim docSingle As Document
Dim rngPage As Range
Dim iCurrentPage As Integer
Dim iPageCount As Integer
Dim strNewFileName As String
Application.ScreenUpdating = False 'Makes the code run faster and reduces screen _
flicker a bit.
Set docMultiple = ActiveDocument 'Work on the active document _
(the one currently containing the Selection)
Set rngPage = docMultiple.Range 'instantiate the range object
iCurrentPage = 1
'get the document's page count
iPageCount = docMultiple.Content.ComputeStatistics(wdStatisticPages)
Do Until iCurrentPage > iPageCount
If iCurrentPage = iPageCount Then
rngPage.End = ActiveDocument.Range.End 'last page (there won't be a next page)
Else
'Find the beginning of the next page
'Must use the Selection object. The Range.Goto method will not work on a page
Selection.GoTo wdGoToPage, wdGoToAbsolute, iCurrentPage + 1
'Set the end of the range to the point between the pages
rngPage.End = Selection.Start
End If
rngPage.Copy 'copy the page into the Windows clipboard
Set docSingle = Documents.Add 'create a new document
docSingle.Range.Paste 'paste the clipboard contents to the new document
'remove any manual page break to prevent a second blank
docSingle.Range.Find.Execute Findtext:="^m", ReplaceWith:=""
'build a new sequentially-numbered file name based on the original multi-paged file name and path
strNewFileName = Replace(docMultiple.FullName, ".doc", "_" & Right$("000" & iCurrentPage, 4) & ".doc")
docSingle.SaveAs strNewFileName 'save the new single-paged document
iCurrentPage = iCurrentPage + 1 'move to the next page
docSingle.Close 'close the new document
rngPage.Collapse wdCollapseEnd 'go to the next page
Loop 'go to the top of the do loop
Application.ScreenUpdating = True 'restore the screen updating
'Destroy the objects.
Set docMultiple = Nothing
Set docSingle = Nothing
Set rngPage = Nothing
End Sub 

3. Then click Run button or press F5 key to apply the VBA.

Note: The splitting documents will be saved to the same place with the original file.


arrow blue right bubbleSplit Word document by heading/page/section break/page break with using Kutools for Word

If you have Kutools for Word installed, you can apply its Split function to easily split one document into multiple ones by page, heading, section break, or page break as you need in Word..

Kutools for Word - With more than 30 handy Word add-ins, free to try with no limitation in 60 days

1. Click Enterprise > Split to enable the Split feature.

2. In the opening Split dialog in the screen, please (1) specify the destination folder you will save the split documents into, (2) check criteria you will split by from the Split by drop down list, and (3) click the OK button. See screenshot:

And now the current Word document is split by the specified criteria (Heading 1 in my case), and the destination folder opens automatically with split documents. See screenshot:

Note: This fantastic Split feature also supports split one Word document by page, by page break, and by section break easily in Word. See below screenshots:

Split one Word document to multiple ones by page:

Split one Word document to multiple ones by page break:

Split one Word document to multiple ones by section break:

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 free trial of Office Tab!
Browse multiple word documents in one window as Firefox


arrow blue right bubbleRelative articles:

Merge multiple documents and keep format in word


arrow blue right bubble Kutools for Word

More than 100 Advanced Functions for Word 2003, 2007, 2010, 2013 and 2016

shot-kutools-700-225-kte

More Features  |  Free Download  |  Only $39.00 for hundreds of functions

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Tjebbe · 4 months ago
    You just saved me a Sh*t load of time, thanks!
  • To post as a guest, your comment is unpublished.
    Prince · 5 months ago
    Thank you, this was very helpful!
  • To post as a guest, your comment is unpublished.
    Ramin · 5 months ago
    Thanks for the macro code
  • To post as a guest, your comment is unpublished.
    LK · 7 months ago
    I did the VBA Code: split document into multiple documents according to delimiter, it does split the document but unfortunately the graphics are deleted, also formatting. Is there a solution to this?
  • To post as a guest, your comment is unpublished.
    Panos HalfMan · 7 months ago
    Does anyone knows how to change the name of the files after splitting the main one

    I want to change the names according to Header of the file