I have a worksheet that will be copied from a pivot table. The columns will remain static however the rows will change with each new pivot table. I have a code that will highlight the header columns blue. Is there a VBA code to sum the ranges between the 2 colors? I have provided an example below to help explain. I am unable to paste a screen shot or color the cells blue. Essentially in my spreadsheet the row that says "engines" and "Cabs" will be filled with blue and I need to sum each column between the blue fill.
[TABLE="width: 387"]
<tbody>[TR]
[TD]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]Engines[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]255[/TD]
[TD]111[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]555[/TD]
[TD]656[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]353[/TD]
[TD]788[/TD]
[/TR]
[TR]
[TD]Cabs[/TD]
[TD]<blue>[/TD]
[TD]<blue>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 387"]
<tbody>[TR]
[TD]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]Engines[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]255[/TD]
[TD]111[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]555[/TD]
[TD]656[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]353[/TD]
[TD]788[/TD]
[/TR]
[TR]
[TD]Cabs[/TD]
[TD]<blue>[/TD]
[TD]<blue>[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]