Hello,
I am new to forum, so going to give this problem a shot.
I have a workbook(Excel 2010) that outputs files into PDF's for Team, Sub-Region, and Regions. Without changing the formula's in the output files, there is a VBA code that separates each Sub-Region and Region, here:
So, there are 9 Teams with 6 different SubRegions that show total sales for each. The final out put looks like this:

You can see on the top that Amers AM West F2F is a Team, then the Central&West is a SubRegion, and finally the bottom line "Americas" is the Region. The totals on the right have been excluded.
What I want to see is if in the VBA code I can separate out Amers Academia(Team Name) and Z Academia(SubRegion) from Americas(Region) and have it show up on its own below the "Americas" totals, with its own totals.
So, something like this:
Not sure how to ask this exactly, but giving it a shot to start.
I am new to forum, so going to give this problem a shot.
I have a workbook(Excel 2010) that outputs files into PDF's for Team, Sub-Region, and Regions. Without changing the formula's in the output files, there is a VBA code that separates each Sub-Region and Region, here:
Code:
' -- Procedure.
LogStatus "Region"
[rB1.MaxTeamIndex].Calculate
' Add two extra rows for final Sub-Region Total and Region Total.
Set lobRegion = CreateNewTable([rB5.RegionTgt], "tB5.Region", [rB1.MaxTeamIndex] + 2, gstrBASIS_THEME)
StaticCheck wksBasis5
So, there are 9 Teams with 6 different SubRegions that show total sales for each. The final out put looks like this:

You can see on the top that Amers AM West F2F is a Team, then the Central&West is a SubRegion, and finally the bottom line "Americas" is the Region. The totals on the right have been excluded.
What I want to see is if in the VBA code I can separate out Amers Academia(Team Name) and Z Academia(SubRegion) from Americas(Region) and have it show up on its own below the "Americas" totals, with its own totals.
So, something like this:
Not sure how to ask this exactly, but giving it a shot to start.
Last edited by a moderator: