+ Reply to Thread
Results 1 to 6 of 6

Splitting sheets Data into Multiple workbooks

  1. #1
    Registered User
    Join Date
    07-25-2019
    Location
    Huddersfield
    MS-Off Ver
    Excel 2010
    Posts
    16

    Splitting sheets Data into Multiple workbooks

    Hi All,

    Hope you can help. I have been doing this manually for months now and i just wonder if there is Macro/VBA code that some can suggest that would make it a lot easier for me to create these sheets.

    I have master spreadsheet (Test Data) which has 4 tabs. Once i update the data weekly, i then create 5 new excel spreadsheets by deleting the data accordingly. Each file is split by Regional Manager (Example attached). So i would have 5 spreadsheets named after the regional managers name. Is there a way to update the master and then click a macro that automatically splits the sheets by Regional manager(Column C) and then saves the file down to my desired destination path?

    Any help will be much appreciated.

    Thank you.
    Attached Files Attached Files
    Last edited by Sandy2385; 12-15-2021 at 06:09 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Splitting sheets Data into Multiple workbooks

    I think I would start by making five copies of the workbook and naming them after each of the Regional Managers … maybe add a formatted date. Then loop through the new workbooks and, within each one, loop through the sheets. Use AutoFilter to select, for example <>Henry, select the visible rows and delete them.

    From a programming point of view, it might be easier to create a new workbook, say Henry, loop through the sheets to remove the entries that are not for Henry, and save and close the workbook. Then you don't need to keep track of five new open workbooks.

    So
    1 SaveCopyAs Henry
    2 loop through sheets and delete non-Henry records
    3 Save and Close
    4 Repeat
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,221

    Re: Splitting sheets Data into Multiple workbooks

    As per Trevor suggestion...Sandy this assumes that all Regional managers are present in all sheets!
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Registered User
    Join Date
    07-25-2019
    Location
    Huddersfield
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Splitting sheets Data into Multiple workbooks

    Thank you both for your amazing help, made it so much easier. Much appreciated.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Splitting sheets Data into Multiple workbooks

    You're welcome. Thanks for the rep.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,221

    Re: Splitting sheets Data into Multiple workbooks

    Glad I could assist...Tx for rep Sandy

+ 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. Splitting multiple sheets into different workbooks
    By mdumar369 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2021, 04:05 AM
  2. Macro code in splitting data in multiple sheets
    By shaishai in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2020, 06:45 AM
  3. Name sheets up to 30 characters - Splitting Data to multiple sheets
    By karpik92 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2019, 10:31 PM
  4. Splitting an Excel File into Multiple Sheets but retaining lookup data etc
    By PhilTSmith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 11:05 AM
  5. Splitting Data from 1 Sheet to Multiple Existing Sheets
    By cloud19 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-29-2013, 03:52 PM
  6. splitting 1 sheet to multiple sheets
    By dfeld71 in forum Excel General
    Replies: 4
    Last Post: 06-09-2005, 03:05 PM
  7. [SOLVED] Splitting a sheet between multiple new sheets
    By Jon C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2005, 10:06 AM

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