ExcelMasterWannaBe4
New Member
- Joined
- Oct 23, 2017
- Messages
- 3
I'm trying to build a macro to pull/copy the same specific cell ranges across multiple worksheets onto a summary sheet. Apologies for my incompetence but I'm new to VBA and on a short timeline so any help is appreciated. I have one workbook with ~200 identical worksheets (all with different names) and need to copy and transpose (data is kicked out of system in columns but need to convert to rows) 8 ranges ("E21:E24"), ("N42:N45"), ("AD42:AD45"), ("N21:N24"), ("S21:S24"), ("I21:I24"), ("I42:I45"), ("I63:I66") from each worksheet onto a summary page across 4 columns with the same category rows repeating going down (see below). Tried a bunch of solutions with looping but can't get it to work. Also, if possible to input the worksheet name at the beginning of each array.
[TABLE="class: cms_table, width: 389"]
<tbody>[TR]
[TD][TABLE="class: cms_table, width: 389"]
<tbody>[TR]
[TD][/TD]
[TD]F1Q15[/TD]
[TD]F2Q15[/TD]
[TD]F3Q15[/TD]
[TD]F4Q15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3/31/2015[/TD]
[TD]6/30/2015[/TD]
[TD]9/30/2015[/TD]
[TD]12/31/2015[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SHEET #1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ops Days[/TD]
[TD]63.5[/TD]
[TD]64.5[/TD]
[TD]65.0[/TD]
[TD]65.0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Revenue[/TD]
[TD]3,266.5[/TD]
[TD]3,334.5[/TD]
[TD]3,875.7[/TD]
[TD]3,646.0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Membership[/TD]
[TD]243,478.0[/TD]
[TD]249,269.0[/TD]
[TD]253,538.0[/TD]
[TD]256,872.0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PMPM[/TD]
[TD]13.5[/TD]
[TD]14.1[/TD]
[TD]9.5[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COGs[/TD]
[TD]2,577.0[/TD]
[TD]2,722.9[/TD]
[TD]2,867.4[/TD]
[TD]2,757.7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gross Trips[/TD]
[TD]1,528.8[/TD]
[TD]1,542.1[/TD]
[TD]1,623.2[/TD]
[TD]1,633.4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Verified Trips[/TD]
[TD]1,117.3[/TD]
[TD]1,160.7[/TD]
[TD]1,218.6[/TD]
[TD]1,194.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gross Profit[/TD]
[TD]689.5[/TD]
[TD]611.6[/TD]
[TD]1,008.3[/TD]
[TD]888.3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SHEET #2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ops Days[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Revenue[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PMPM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COGs[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gross Trips[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Verified Trips[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gross Profit[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: cms_table, width: 389"]
<tbody>[TR]
[TD][TABLE="class: cms_table, width: 389"]
<tbody>[TR]
[TD][/TD]
[TD]F1Q15[/TD]
[TD]F2Q15[/TD]
[TD]F3Q15[/TD]
[TD]F4Q15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3/31/2015[/TD]
[TD]6/30/2015[/TD]
[TD]9/30/2015[/TD]
[TD]12/31/2015[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SHEET #1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ops Days[/TD]
[TD]63.5[/TD]
[TD]64.5[/TD]
[TD]65.0[/TD]
[TD]65.0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Revenue[/TD]
[TD]3,266.5[/TD]
[TD]3,334.5[/TD]
[TD]3,875.7[/TD]
[TD]3,646.0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Membership[/TD]
[TD]243,478.0[/TD]
[TD]249,269.0[/TD]
[TD]253,538.0[/TD]
[TD]256,872.0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PMPM[/TD]
[TD]13.5[/TD]
[TD]14.1[/TD]
[TD]9.5[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COGs[/TD]
[TD]2,577.0[/TD]
[TD]2,722.9[/TD]
[TD]2,867.4[/TD]
[TD]2,757.7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gross Trips[/TD]
[TD]1,528.8[/TD]
[TD]1,542.1[/TD]
[TD]1,623.2[/TD]
[TD]1,633.4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Verified Trips[/TD]
[TD]1,117.3[/TD]
[TD]1,160.7[/TD]
[TD]1,218.6[/TD]
[TD]1,194.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gross Profit[/TD]
[TD]689.5[/TD]
[TD]611.6[/TD]
[TD]1,008.3[/TD]
[TD]888.3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SHEET #2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ops Days[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Revenue[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PMPM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COGs[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gross Trips[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Verified Trips[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gross Profit[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]