+ Reply to Thread
Results 1 to 2 of 2

Need Macro to help split data into multiple tabs, while keeping headers, formatting, etc

  1. #1
    Registered User
    Join Date
    02-25-2009
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    11

    Need Macro to help split data into multiple tabs, while keeping headers, formatting, etc

    Hey guys,

    I'm using a program for work that extracts data and creates my financial statements. However, I have been asked by my superiors to see if there is a way to split up the financial statement based on the different types of fees and expenses, but do it in a way that it isn't a manual copy paste.

    Since each row has a different heading (and there are a lot of rows), I created some if statements to make it so each row then has a title based on the type of income or expense it is. Currently, there are 12 different 'Titles', but there may be more if they want me to break things out into more detail, or less if they want to combine things.

    What I am trying to figure out is a Macro that will take each change in 'Title', which is located in column D, and separate the data into a new tab (Column D doesn't have to be brought over but it will just be hidden if it is). This certain report has data that goes from Column E, to Column CS. I have one that is 3 times as wide that I would need to use this for as well.

    I would like it to copy over all formatting, as well as the headers located in Rows 1-10, and hopefully column widths too if we can. Also, is it possible to make the new tab the same label as the 'Title' in column D? For instance, instead of it just being 'Sheet1', it would be 'Fee Income' or 'G&A Expenses'?

    I would post a copy of the worksheet but since it is financial data, I'm not able to. I know it's a little hard to imagine without it, but hopefully that is enough detail to work off of? I would really appreciate any help!

  2. #2
    Registered User
    Join Date
    02-25-2009
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Need Macro to help split data into multiple tabs, while keeping headers, formatting, e

    I found this macro online that I've been trying to use, but I need it to copy the first 10 rows and it is only copying row 10... It also isn't keeping the formatting of the sheet, and I need it to automatically hide Columns A-D. If possible, also freeze Rows 1-10, and Column E. It does pull over the 'Titles' as the tab names, though so that is great.

    Please Login or Register  to view this content.
    Got this code from here: https://social.msdn.microsoft.com/Fo...forum=exceldev
    There are just so many updates to it that I don't know what was working and what isn't, and they also adjusted it so it makes brand new sheets, but I don't need that...
    Last edited by Centara; 09-15-2016 at 04:44 PM. Reason: Updated Naming for Macro from Student to FeeExp

+ 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. MACRO to split new data into multiple tabs but not overwrite existing data
    By amo899115 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-11-2016, 01:42 PM
  2. Replies: 4
    Last Post: 05-12-2014, 06:58 PM
  3. Macro to split Large Worksheet Into Multiple Tabs
    By asmith08 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2014, 06:45 PM
  4. Macro to split data into tabs
    By keeptabs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-07-2013, 05:56 AM
  5. Replies: 2
    Last Post: 09-01-2013, 07:36 PM
  6. [SOLVED] Split data in to multiple tabs using value in column
    By Manpar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2012, 08:33 AM
  7. [SOLVED] Spreadsheet with multiple tabs, same headers
    By David Parks in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-22-2008, 04:50 AM

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