+ Reply to Thread
Results 1 to 9 of 9

Split Excel 2007 File

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Epsom
    MS-Off Ver
    Excel 2007
    Posts
    8

    Split Excel 2007 File

    Hi,

    I have the attached file which I would like to split up into separate files based upon the values in column A. For example I would like a code that creates 1 file with all rows for SPLAS00, another file with all data corresponding to SWOOD00 rows............. etc.

    However in addition to this I would like the first row to also appear in the created files with all the headings so that everyone knows what the info is. If anyone has any existing code that they could modify to create this I'd be very grateful.

    Any queries let me know.

    Many Thanks
    Attached Files Attached Files
    Last edited by chris391; 07-13-2012 at 04:10 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Split Excel 2007 File

    Do you want the data to be split into separate worksheets or into new workbooks?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    Epsom
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Split Excel 2007 File

    Hi arlu1201, I would like them in new workbooks if possible.

    Thanks for your help.

    Chris

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Split Excel 2007 File

    Hi chris391
    Welcome to th Forum!!
    See the code in this Thread...you should be able to use it by modifying perhaps two lines of code.
    http://www.excelforum.com/excel-prog...-workbook.html
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Registered User
    Join Date
    07-11-2012
    Location
    Epsom
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Split Excel 2007 File

    Hi I'm actually a novice and don't know VBA at all. If someone could do this for me I'd appreciate it!

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Split Excel 2007 File

    Hi Chris
    Try the code in the attached. Click the Button to run...let me know of issues.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-11-2012
    Location
    Epsom
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Split Excel 2007 File

    Thanks John, I'll check and let you know.

  8. #8
    Registered User
    Join Date
    07-11-2012
    Location
    Epsom
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Split Excel 2007 File

    John, that works perfectly! Thanks ever so much for your help.

  9. #9
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Split Excel 2007 File

    Hi Chris
    Glad I could help. If this satisfies your need please mark your Thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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