Consulting

Results 1 to 3 of 3

Thread: Split word document on page breaks

  1. #1
    VBAX Newbie
    Joined
    Aug 2014
    Posts
    1
    Location

    Split word document on page breaks

    Hi,

    I'd like to split a large document into several smaller ones on the existing page breaks within the larger document.

    I also need the new document to retain all the formatting/margins etc form the original document.

    Each new document also needs to be saved with the filename coming from the first few characters of the first line in the new document, up to and including this character, "]"

    Is there an simple way to do this using VBA?

  2. #2
    Are these section page breaks, manual page breaks or simply the result of text flow?

    What exactly might be found in the first line?

    If the document to be split is the result of a mail merge then it would make more sense to use http://www.gmayor.com/individual_merge_letters.htm or http://www.gmayor.com/MergeAndSplit.htm to re-merge to separate documents as these will take care of the issues of illegal filename characters and duplicated names etc as well as retaining the format.

    If not we would need the answers to the questions before establishing a process.

    Don't you have a similar question in the Microsoft Office Forums?
    Last edited by gmayor; 08-29-2014 at 03:59 AM.
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  3. #3
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Cross-posted and answered, before posting here, at: http://www.msofficeforums.com/word-v...delimiter.html
    For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184 See also http://www.vbaexpress.com/forum/faq...._new_faq_item3
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •