+ Reply to Thread
Results 1 to 9 of 9

Macro help: Separating data into tabs and creating a table of content of those tabs

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    Beirut
    MS-Off Ver
    Excel OSX
    Posts
    38

    Macro help: Separating data into tabs and creating a table of content of those tabs

    So I have the attached workbook (http://www.filedropper.com/macrohelp) and would like to have a macro that splits my data into multiple worksheets based on column A of each tab.

    For example: Sheet1 contains only one category in Column A - called "Tab_1" -, so only one Tab labeled "Tab_1" will be generated containing the respective data labeled with "Tab_1". Sheet2 on the other hand contains three categories in Column A: "Tab_2" "Tab_3" and "Tab_4"; so in this case 3 tabs will be generated with each containing the respective data labeled under each category.

    Can anyone help with a macro that goes through each sheet in a workbook and generates tabs based on Column A in each sheet?

    Lastly, I would like to have a table of contents of all tabs that were generated and have those listed in a sheet and with hyperlinks to each respective tab. I put an example in my file. If the hyperlink part is too difficult, just a sheet with a listing of all tabs should suffice and then Ill manually hyperlink them.

    Thanks guys

    Ps. I did my research and found the code lusted here (http://www.extendoffice.com/document...-column.html); however, that only works for one sheet at a time and does not help me in my task of creating an index.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro help: Separating data into tabs and creating a table of content of those tabs

    How many sheets (tabs) do you have that you want to split up? Will this number always be the same or will it change? If the number is always the same, what are the sheet names?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    04-29-2013
    Location
    Beirut
    MS-Off Ver
    Excel OSX
    Posts
    38

    Re: Macro help: Separating data into tabs and creating a table of content of those tabs

    There are 16 tabs each of which contains a different number of categories for Column A. So for example the first tab contains 3 different categories in column A; so 3 new tabs will be generated from this first tab (one for each category). Then the second tab contains 8 different categories in column A; so 8 new tabs will be generated from this second tab (one for each tab) and so forth.

    Thanks for looking into this!

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro help: Separating data into tabs and creating a table of content of those tabs

    Do these 16 tabs have specific names or are they just Sheet1, Sheet2, Sheet3, etc. to Sheet16?

  5. #5
    Registered User
    Join Date
    04-29-2013
    Location
    Beirut
    MS-Off Ver
    Excel OSX
    Posts
    38

    Re: Macro help: Separating data into tabs and creating a table of content of those tabs

    The 16 tabs are labeled from 1 to 16. So literally "1" "2" "3" ... "16"

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro help: Separating data into tabs and creating a table of content of those tabs

    Click here to download your sample file. Click the button on Sheet1.

  7. #7
    Registered User
    Join Date
    04-29-2013
    Location
    Beirut
    MS-Off Ver
    Excel OSX
    Posts
    38

    Re: Macro help: Separating data into tabs and creating a table of content of those tabs

    thanks! works great

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro help: Separating data into tabs and creating a table of content of those tabs

    My pleasure.

  9. #9
    Registered User
    Join Date
    04-29-2013
    Location
    Beirut
    MS-Off Ver
    Excel OSX
    Posts
    38

    Re: Macro help: Separating data into tabs and creating a table of content of those tabs

    Hi, I was wondering if anyone can help generate the same code, but disregarding the first part "Can anyone help with a macro that goes through each sheet in a workbook and generates tabs based on Column A in each sheet?". I only need have a macro that hyperlinks each item in a column to its respective tab.

+ 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. Table of Content with linked tabs
    By britt@wjg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2013, 01:17 PM
  2. Setting Up and Creating a Macro to copy data from multiple tabs onto one main tab
    By Carrie1990 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-29-2012, 12:19 PM
  3. Replies: 1
    Last Post: 05-03-2012, 10:50 AM
  4. Replies: 6
    Last Post: 02-01-2012, 05:29 PM
  5. Creating an "upcoming tasks" rollup table based on data in multiple tabs
    By myfishorville in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-02-2008, 11:37 PM

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