+ Reply to Thread
Results 1 to 4 of 4

Macro to Split Workbook and Store New Workbooks in New Folders

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    2

    Post Macro to Split Workbook and Store New Workbooks in New Folders

    Hi All,

    This is my first thread! I am new to macros and have found one that splits workbooks but isn't specific to my needs. Here is what I need the macro to do:

    I have a workbook with many tabs. I need a macro to split each tab off into a new workbook that will be saved using the name of the tab. I also need each new workbook to be saved in it's own folder that is named the same as the tab.

    If anyone already has something like this and is willing to share that'd be a true time saver.

    Thanks a ton in advance!

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro to Split Workbook and Store New Workbooks in New Folders

    try this code:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-08-2010
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Macro to Split Workbook and Store New Workbooks in New Folders

    Hey watersev,

    Thanks for the quick reply. This is working for the most part but there are two issues:

    1. The file names and folder names are the name of the sheet in the workbook x2.
    Ex. Sheet Name = Step01 ------> Workbook/Folder Name = Step01Step01

    2. The files are not inserting into the folders. It creates the files and the folders but does not put the file with the same name into the proper folder with the same name.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to Split Workbook and Store New Workbooks in New Folders

    I believe this needs to be corrected:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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