+ Reply to Thread
Results 1 to 7 of 7

Splitting worksheets based on a column Data

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Splitting worksheets based on a column Data

    Hi
    Need a quick hand in trying to split down a data worksheet (approx 4000 lines) into seperate worksheets after every change in "category" data,
    The category column is in alphatical order, and will have about 50 different field entries, soft drinks, confectionery etc.
    to split manually will take me about 3 hours and would be an absolute drain!
    I've loaded an example file, the main sheet i have has several more columns but the principle is the same.

    Any help would be much appreciated.

    thanks
    Adi
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Splitting worksheets based on a column Data

    Hi -

    Separate worksheets or separate workbooks?

    Regards,
    Event

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

    Re: Splitting worksheets based on a column Data

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button
    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]

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Splitting worksheets based on a column Data

    HTH
    Regards, Jeff

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Splitting worksheets based on a column Data

    Give this a try

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,592

    Re: Splitting worksheets based on a column Data

    .... meanigless use of dictionary....
    Please Login or Register  to view this content.
    OR
    Please Login or Register  to view this content.
    Last edited by jindon; 12-16-2012 at 12:28 PM.

  7. #7
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Re: Splitting worksheets based on a column Data

    Thanks all, thats saved me some considerable time! I used arlu1201 code which did the trick.

+ 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