+ Reply to Thread
Results 1 to 6 of 6

Breaking a Table in to New Sheets

  1. #1
    Registered User
    Join Date
    01-17-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    67

    Breaking a Table in to New Sheets

    Hey folks,

    I was just wondering if there was an easy way to split several rows of a sheet in to their own worksheet? Right now I have a workbook with one worksheet which looks like:

    R1 (C1: C8): Data
    R2 (C1: C8): Data
    R3: All Empty
    R4 (C1: C8): Data
    R5: All Empty
    R6 (C1: C8): Data
    R7 (C1: C8): Data
    R8 (C1: C8) :data
    R9: All Empty

    And so on. Every little block signifies a different product, so in this example R1 and R2 are for one product, R4 is for another product, R6:R8 are for another product etc.

    So I was wondering, can I have a function which gives each product its own worksheet and names the worksheet the value in Column 2? The number of rows for each product (and the number of products) is variable but the number of columns stay the same and there'll always be one gap between each product.

    This isn't an essential can't-live-without thing, right now I'm just cutting and pasting, but it would be nice to have everything automated. Thanks for your help in advance, I'm using Office 2003 but please let me know if you need any more information,

    AR
    Last edited by agentred; 11-04-2009 at 07:20 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Breaking a Table in to New Sheets

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Breaking a Table in to New Sheets

    Here is some code you could use
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by royUK; 11-04-2009 at 06:56 AM. Reason: edit code tags
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  4. #4
    Registered User
    Join Date
    01-17-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Breaking a Table in to New Sheets

    Ricardo, that's perfect! Exactly what I was looking for, thank you so much for helping and typing it out.

    If I could ask one more question, what's the best way to send these kinds of macros to other people? Would it be as an excel add in?

    I have a couple of shortcut procedures which I run to format text and do simple operations in a variety of worksheets. I have them stored in my personal.xlsx workbook, but how could I send them to someone with Office 2003?

    I was thinking add ins but everytime I read a walkthrough for creating add-ins it relates to functions. Will it be equivalent? Gracias!

  5. #5
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Breaking a Table in to New Sheets

    That you make them part of your 'tools' is OK. I think it is best to copy past the code in a module of a new workbook and send the complete Workbook.

    There is not a big difference in SUB's and FUNCTIONS.
    Functions as well as Subs can have arguments
    FunctionA(arg1, arg2), SubA(arg1, arg2)

    The difference is that a function return a variable and Sub's don't. To make User defined Functions this is a requirement as the "=" sign expects a returned value.

  6. #6
    Registered User
    Join Date
    08-21-2014
    Location
    New York
    MS-Off Ver
    2003
    Posts
    1

    Unhappy Re: Breaking a Table in to New Sheets

    Hi.. I have a question. If I want to break a row into multiple sheets what is the best way to do this.. For example please see below


    Parent Name Client Name Client ID
    irum xyz 123456789
    irum abc 12365
    irum abcd 12584
    tim banana 5236599
    tim banana 265925852
    tim apple 2525252
    tim yogurt 25252646548
    tim chocolate 2856484
    karl candy 2566496
    karl water 254462
    steph juice 25295496
    SAG power 2594662
    Sam mexico 258985462
    Sam canada 2595426
    Sam usa 25494262


    basically i have 3 columsn. I want to break down the parent names into a different spreadsheet. like for eg below

    Parent Name Client Name Client ID

    irum xyz 123456789
    irum abc 12365
    irum abcd 12584

    this should be one spreadsheet.


    What can i do can someone pleassse help its urgent.

+ 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