weefisheads
Active Member
- Joined
- Mar 18, 2006
- Messages
- 353
Been a minute since my last post...
I've found loads of macros that will create a new workbook for each tab in a source workbook - ie, a workbook with 25 tabs will be used to create 25 new workbooks, one for each tab. Lots of code for this out there.
What I'm looking for is that but with a wrinkle. Sometimes the source workbook will will have 1 tab for each newly created file, or it might need 2, or maybe 3 tabs that need to be copied to each individual workbook.
For example...the source workbook might have 2 tabs that need to be copied to the new file.
Tab 1 - Bill 1
Tab 2 - Bill 2
Tab 3 - Veronica 1
Tab 4 - Veronica 2
Tab 5 - Flloyd 1
Tab 6 - Flloyd 2
Running the macro I would hope to create 3 workbooks - Bill.xlsx, Veronica.xlsx, Flloyd.xlsx - and each new workbook would have 2 tabs.
Another month it might need to be 3 tabs from the source workbook. So
Tab 1 - Jessica 1
Tab 2 - Jessica 2
Tab 3 - Jessica 3
Tab 4 - Tim 1
Tab 5 - Tim 2
Tab 6 - Tim 3
Running the macro would create 2 new workbooks - Jessica.xlsx and Tim.xlsx - and each workbook will have 3 tabs.
One thing that is known is that there will always be the same number of tabs for all workbooks - so if there are 3 tabs for Bill, there will be 3 tabs for ALL names. But each time there maybe more or less names - might be 4, might be 20.
Hope I'm explaining it properly.
Thanks,
d
I've found loads of macros that will create a new workbook for each tab in a source workbook - ie, a workbook with 25 tabs will be used to create 25 new workbooks, one for each tab. Lots of code for this out there.
What I'm looking for is that but with a wrinkle. Sometimes the source workbook will will have 1 tab for each newly created file, or it might need 2, or maybe 3 tabs that need to be copied to each individual workbook.
For example...the source workbook might have 2 tabs that need to be copied to the new file.
Tab 1 - Bill 1
Tab 2 - Bill 2
Tab 3 - Veronica 1
Tab 4 - Veronica 2
Tab 5 - Flloyd 1
Tab 6 - Flloyd 2
Running the macro I would hope to create 3 workbooks - Bill.xlsx, Veronica.xlsx, Flloyd.xlsx - and each new workbook would have 2 tabs.
Another month it might need to be 3 tabs from the source workbook. So
Tab 1 - Jessica 1
Tab 2 - Jessica 2
Tab 3 - Jessica 3
Tab 4 - Tim 1
Tab 5 - Tim 2
Tab 6 - Tim 3
Running the macro would create 2 new workbooks - Jessica.xlsx and Tim.xlsx - and each workbook will have 3 tabs.
One thing that is known is that there will always be the same number of tabs for all workbooks - so if there are 3 tabs for Bill, there will be 3 tabs for ALL names. But each time there maybe more or less names - might be 4, might be 20.
Hope I'm explaining it properly.
Thanks,
d