Good evening all. I was previously looking (see “Grouping sheets from multiple workbooks”) for a solution that took a folder full of single-sheet workbooks relating to team reports (eg “Team Alpha Q1”, “Team Bravo Q1”, “Team Alpha Q2”, “Team Bravo Q2”) and consolidating these into a number of Team-based workbooks (eg “Team Alpha” containing sheets Q1 and Q2; “Team Bravo” containing sheets Q1 and Q2 etc).
This hasn’t had any response so I’ve re-framed my approach in a new thread. I now have a single workbook with a great number of sheets relating to each team; these were originally in a random sequence but I have used VBA to sort the sheets alphabetically. The next thing I want to do is to take groups of sheets relating to the same team and move them to new workbooks as before, using the team names.
There are a couple of “gotchas” that I’m struggling with:
To summarize (sorry to be long-winded):
It doesn’t really matter if the final sheets also include the team name, although that makes them rather long!
Many thanks for your patience in reading this … and I hope someone might be able to point me in the right direction.
Piet
This hasn’t had any response so I’ve re-framed my approach in a new thread. I now have a single workbook with a great number of sheets relating to each team; these were originally in a random sequence but I have used VBA to sort the sheets alphabetically. The next thing I want to do is to take groups of sheets relating to the same team and move them to new workbooks as before, using the team names.
There are a couple of “gotchas” that I’m struggling with:
- I have successfully managed to move a pre-set number of sheets to a different workbook. This is usually OK as there are usually the same number of sheets for each team; however, this isn’t always the case so I’m trying to find a way of selecting all sheets that begin with the same team name.
- The second thing I'm struggling with is creating the new workbooks with the team names; not all team names have the same structure, thus I could have teams Alpha, Delta Uniform, Zulu etc. However, each team’s sheets starts with the full team name.
To summarize (sorry to be long-winded):
- I start with a single workbook containing 100 or so sheets named along the lines of: Alpha Q1; Alpha Q2; Delta Uniform Q1; Delta Uniform Q2; Zulu Q1; Zulu Q2 and Zulu Q3.
- I’d like to end up with Workbook “Alpha” containing sheets Q1 and Q2; “Delta Uniform” containing sheets Q2 and “Zulu” containing Q1, Q2 and Q3.
It doesn’t really matter if the final sheets also include the team name, although that makes them rather long!
Many thanks for your patience in reading this … and I hope someone might be able to point me in the right direction.
Piet