+ Reply to Thread
Results 1 to 4 of 4

Extract pages from word file and save extracted pages to new word file

  1. #1
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Question Extract pages from word file and save extracted pages to new word file

    Hi Friends,

    I have a word file that contains contracts for many employees in one word file. The count is approximate 320 and more.

    My concern is that each employees contracts do not have the same number of pages. So as an example - Employee 1 would have 13 pages and 2nd employee would have 15 pages in the same file.

    I need to extract each employees contract and save them individually.

    Suggestion - Each contract 1st page starts with a small text line stating "WITHOUT PREJUDICE & SUBJECT TO CONTRACT". Can we build a macro that would

    1. Search for "WITHOUT PREJUDICE & SUBJECT TO CONTRACT" statement and mark this page as the 1st page to extract
    2. Search for the next "WITHOUT PREJUDICE & SUBJECT TO CONTRACT" statement and extract the pages from my Point 1 above to a page before this next "WITHOUT PREJUDICE & SUBJECT TO CONTRACT" (i.e. delete the pages from the original document once extracted and saved)
    3. Now mark the 2nd "WITHOUT PREJUDICE & SUBJECT TO CONTRACT" as the 1st page and on on...

    Note - I would also like the headers and footers to be copied too..


    Any help (I'm using word 2007) ??? As I have a client deadline tomorrow
    Last edited by bonny24tycoon; 06-28-2012 at 07:13 AM. Reason: Note added
    Thanks,

    Bonny Tycoon


  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Extract pages from word file and save extracted pages to new word file

    See my previous reply: http://www.excelforum.com/word-progr...documents.html
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Extract pages from word file and save extracted pages to new word file

    Hi Macropod,

    I tried it last time and it didnt work as Im not too perfect with amending macros to suite my requirements. The last time I went ahead and completed the task manually..

    Can you help me by amending the macro for me?? As Im not so good with macros

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Extract pages from word file and save extracted pages to new word file

    Unless you can say what the issues are, then I can't modify it either. At the very least, I'd need to know how your document is structured vis-a-vis Section breaks/manual page breaks and what in what sense "it didnt work" (which is hardly descriptive).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1