+ Reply to Thread
Results 1 to 5 of 5

Split Excel Spreadsheet Data Into New Workbooks based on page breaks

  1. #1
    Registered User
    Join Date
    09-06-2013
    Location
    Portland Oregon
    MS-Off Ver
    Excel 2010
    Posts
    23

    Split Excel Spreadsheet Data Into New Workbooks based on page breaks

    I need VBA code to split Excel spreadsheet Pivot Code data into new workbooks based on page breaks. Each page may have multiple sets of records with varying number of rows and consistent columns. Would want to capture all data from MasterSheet as laid out in MasterSheet.

    Example:
    Col1 Col2 Col3 Col4 Col5
    Supervisor1
    Emp1
    Info1 X X X
    Info2 X X
    Info3 X X
    Emp2
    DDD1 X X
    EEE1 X X
    Emp3
    GGGG X X
    -----Page Break
    Supervisor 2
    Emp2
    HHHH X X X
    -----Page Break

    Supervisor1 and all row/column information would end up in Workbook1 with Tab titled Supervisor1
    Supervisor2 and all row/column information would end up in Workbook2 with Tab titled Supervisor2


    Thanks in advance for any help provided.

    Steve
    Last edited by sarndt01; 09-20-2013 at 12:39 AM.

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Split Excel Spreadsheet Data Into New Workbooks based on page breaks

    Hi Steve,

    Please try

    Please Login or Register  to view this content.
    If you like my contribution click the star icon!

  3. #3
    Registered User
    Join Date
    09-06-2013
    Location
    Portland Oregon
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Split Excel Spreadsheet Data Into New Workbooks based on page breaks

    Ollie
    This works great...Only one question...Can the formatting of the cells be preserved in the newly created workbooks?
    Thanks
    Steve

  4. #4
    Registered User
    Join Date
    09-06-2013
    Location
    Portland Oregon
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Split Excel Spreadsheet Data Into New Workbooks based on page breaks

    Ollie
    One other thing - there is a header row that would need to be inserted into each workbook.
    Thanks
    Steve

  5. #5
    Registered User
    Join Date
    09-06-2013
    Location
    Portland Oregon
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Split Excel Spreadsheet Data Into New Workbooks based on page breaks

    Figured out how to get the header and formatting.
    Thanks
    Steve

  6. #6
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Split Excel Spreadsheet Data Into New Workbooks based on page breaks

    Good for you! Please remember to click the "*" if you are happy with my contribution

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Saving to PDF with page breaks so charts aren't split
    By wizgf19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2012, 05:21 PM
  2. Inserting Page Breaks on relative Rows based on Data
    By Tirren in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2008, 07:38 PM
  3. [SOLVED] Page Breaks based on cell data
    By Josh Craig in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2006, 10:10 PM
  4. [SOLVED] How to copy page breaks within an Excel spreadsheet?
    By Warren in forum Excel General
    Replies: 1
    Last Post: 04-06-2006, 03:00 PM
  5. [SOLVED] Auto insert page breaks in Excel, based on a sort of numbers
    By peterc89 in forum Excel General
    Replies: 0
    Last Post: 11-09-2005, 11:45 AM

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