Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2014, 05:58 AM
officeboy09 officeboy09 is offline Split a word document Windows XP Split a word document Office 2003
Advanced Beginner
Split a word document
 
Join Date: Oct 2013
Location: Australia
Posts: 40
officeboy09 is on a distinguished road
Default Split a word document

Hi

Can anyone please tell me how to split a single word document into several separated documents?



e.g. 100-page doc -> 4 x 25-page docs

cheers
Reply With Quote
  #2  
Old 04-11-2014, 07:03 AM
Charles Kenyon Charles Kenyon is offline Split a word document Windows 7 64bit Split a word document Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,138
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Simplest method: Make four copies of your document, numbered from 1-4. Then delete the parts from each that you don't need.
Reply With Quote
  #3  
Old 04-11-2014, 07:17 AM
officeboy09 officeboy09 is offline Split a word document Windows XP Split a word document Office 2003
Advanced Beginner
Split a word document
 
Join Date: Oct 2013
Location: Australia
Posts: 40
officeboy09 is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
Simplest method: Make four copies of your document, numbered from 1-4. Then delete the parts from each that you don't need.
But if it's a one thousand page doc, it'll be a messy task.
Reply With Quote
  #4  
Old 04-11-2014, 02:43 PM
fumei fumei is offline Split a word document Windows 7 64bit Split a word document Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

Charles' suggestion may be messy, but as he points out, it is the simplest.

Trying to find (define parameters, code, test, debug, test again....repeat) some coded solution can be MUCH more messy.

Do you have specific parameters? Is it 25, 25, 25, 25? Or 30, 10, 50, 10?

Is this a one-off? If it IS a one off, then definitely doing it manually will be faster. Although that depends on so many other factors. Are there headers and footer involved?
Quote:
Can anyone please tell me how to split a single word document into several separated documents?
At this point, this is just too vague.


Reply With Quote
  #5  
Old 04-11-2014, 03:16 PM
macropod's Avatar
macropod macropod is offline Split a word document Windows 7 32bit Split a word document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by officeboy09 View Post
Can anyone please tell me how to split a single word document into several separated documents?

e.g. 100-page doc -> 4 x 25-page docs
What are the splitting criteria? Just a page count, or are there some other criteria?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 04-12-2014, 04:18 AM
officeboy09 officeboy09 is offline Split a word document Windows XP Split a word document Office 2003
Advanced Beginner
Split a word document
 
Join Date: Oct 2013
Location: Australia
Posts: 40
officeboy09 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
What are the splitting criteria? Just a page count, or are there some other criteria?
Just page count, no specific criteria.
Reply With Quote
  #7  
Old 04-12-2014, 05:07 AM
macropod's Avatar
macropod macropod is offline Split a word document Windows 7 32bit Split a word document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The following macro splits a large document into multi-page blocks, the size of which are determined via an InputBox.
Code:
Sub DocumentSplitter()
Dim iCount As Long, iLast As Long, wdDocSrc As Document, wdDocTgt As Document
Dim RngSplit As Range, StrDocName As String, StrDocExt As String, DocFmt As Long, Rslt
Set wdDocSrc = ActiveDocument
With wdDocSrc
  Rslt = InputBox("The document contains " & .ComputeStatistics(wdStatisticPages) & " pages." _
    & vbCr & "What is the page block count for splitting?", "Document Splitter")
    If Rslt = "" Then Exit Sub
    Rslt = CLng(Rslt)
  StrDocName = .FullName
  StrDocExt = "." & Split(StrDocName, ".")(UBound(Split(StrDocName, ".")))
  StrDocName = Left(StrDocName, Len(StrDocName) - Len(StrDocExt)) & "_"
  DocFmt = .SaveFormat
  On Error Resume Next
  For iCount = 0 To Int(.ComputeStatistics(wdStatisticPages) / Rslt)
    If .ComputeStatistics(wdStatisticPages) > Rslt Then
      iLast = Rslt
    Else
      iLast = .ComputeStatistics(wdStatisticPages)
    End If
    Set RngSplit = .GoTo(What:=wdGoToPage, Name:=iLast)
    Set RngSplit = RngSplit.GoTo(What:=wdGoToBookmark, Name:="\page")
    RngSplit.Start = .Range.Start
    Set wdDocTgt = Documents.Add(Template:=ActiveDocument.AttachedTemplate.FullName, Visible:=False)
    With wdDocTgt
      .Range.FormattedText = RngSplit.FormattedText
      .SaveAs2 FileName:=StrDocName & iCount + 1 & StrDocExt, FileFormat:=DocFmt, AddToRecentFiles:=False
      .Close
    End With
    RngSplit.Cut
  Next iCount
  Set RngSplit = Nothing
  .Close Savechanges:=False
End With
Set RngSplit = Nothing: Set wdDocSrc = Nothing: Set wdDocTgt = Nothing
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Split a word document split word document based on bookmarks with each new document title of the bookmark megatronixs Word VBA 9 09-05-2020 02:29 PM
Split a word document How do I see one document map for each half of a split MS WORD 2010 document? quickwin Word 3 07-09-2013 10:20 PM
Split a word document Split multi-page mail merge document, then name file from letter info. BriMan83 Mail Merge 1 04-24-2013 11:35 PM
Split a word document Split Screen in Word Topas Word 2 05-17-2012 07:27 AM
Split a word document Split MailMerge document agujoa Mail Merge 3 04-08-2012 11:26 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft