+ Reply to Thread
Results 1 to 4 of 4

Split Data from one sheet into multiple sheets

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Split Data from one sheet into multiple sheets

    Hello! I am new to macro's and was wondering if someone could help me. In my office, we get a report from a website that comes to us in an Excel spreadsheet. We are looking to run a macro to split that data that is on that sheet into multiple sheets. I will attach a copy of the sheet to this thread. I am looking at grabbing all the information from company name to the next company name. For instance, in the spreadsheet company name is Paper Inc. I want to grab that name and all the information below it until you hit the next Paper Inc. name, which then I want to take it and paste it into another sheet in the same workbook. Please let me know if there is something that can be done. I have written a macro for this, but it runs into errors, so I am looking for a fresh clean start. Thank you! PaperInc_Macro.xlsx

  2. #2
    Forum Contributor
    Join Date
    05-08-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    102

    Re: Split Data from one sheet into multiple sheets

    The code assumes that the name of the worksheet that you put all the raw data into is always named "Sheet1". In your example, the name of the company is Paper Inc. If you have a different company, just change up the line in the code that deals with this. Look for the variable named "MyString". What you can do is to say MyString = ws.Range("A1") if you know that the name of the company is always in Cell A1 of "Sheet1". Look on around line 39 of the code. Hope this works.

    Version04.xlsm
    ____________________
    [1] If this reply was helpful, click the star to the left.
    [2] If this reply answered your question, mark this thread as [SOLVED].
    Last edited by Dimitrov; 10-11-2013 at 06:59 PM.

  3. #3
    Registered User
    Join Date
    10-11-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Split Data from one sheet into multiple sheets

    Thank you very much! This works perfectly!

  4. #4
    Forum Contributor
    Join Date
    05-08-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    102

    Re: Split Data from one sheet into multiple sheets

    jstewart22,

    Glad that it worked. When you get a chance, please kindly help me out by doing the following:

    [1] If this reply was helpful, click the star to the left.
    [2] If this reply answered your question, mark this thread as [SOLVED].
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    Thank you, and have a great weekend.

+ 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. need vba to split sheet into multiple sheets
    By thuff in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2013, 04:39 PM
  2. [SOLVED] Split large sheet in multiple 1000 row sheets
    By thotosch in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2013, 06:29 AM
  3. Split Data in Home Sheet to Multiple Existing Sheets
    By tboyle35 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2012, 04:23 PM
  4. [SOLVED] Split master sheet data to multiple sheets in same workbook
    By Apple Ling in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2012, 10:39 PM
  5. i need to split excel work sheet into multiple sheets
    By samehnabil in forum Excel General
    Replies: 1
    Last Post: 08-16-2012, 07:54 PM

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