I have been researching this for awhile now, and can't figure out how to do it. Basically I have one sheet that has 23 columns - one of those columns being "Responsible Party". I want to ONLY copy the rows of data if the responsible Party has the name "Joe Smith" (for example). I do NOT want to use an autofilter - I know how to add that in macro - but instead would rather use a for loop. Any ideas.
Example of Sheet 2
[TABLE="width: 368"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sales Office[/TD]
[TD]Responsible Party[/TD]
[TD]Company ID[/TD]
[TD]Company Name[/TD]
[TD]AUM (MM)[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]12[/TD]
[TD]Google[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]13[/TD]
[TD]BlackRock[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]15[/TD]
[TD]GE[/TD]
[TD]52[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Dan Washington[/TD]
[TD]78[/TD]
[TD]StateStreet[/TD]
[TD]90[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]George Bard[/TD]
[TD]92[/TD]
[TD]BNY[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Below is what I want to show up on Sheet 1 (from Sheet 2 Above) USING A MACRO
[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sales Office[/TD]
[TD]Responsible Party[/TD]
[TD]Company ID[/TD]
[TD]Company Name[/TD]
[TD]AUM (MM)[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]12[/TD]
[TD]Google[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]13[/TD]
[TD]BlackRock[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]15[/TD]
[TD]GE[/TD]
[TD]52[/TD]
[/TR]
</tbody>
[/TABLE]
[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]please help if you have any ideas!! I've tried multiple different ways.[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD]
[/TD]
[/TR]
</tbody><colgroup><col><col><col span="2"><col></colgroup>[/TABLE]
Example of Sheet 2
[TABLE="width: 368"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sales Office[/TD]
[TD]Responsible Party[/TD]
[TD]Company ID[/TD]
[TD]Company Name[/TD]
[TD]AUM (MM)[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]12[/TD]
[TD]Google[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]13[/TD]
[TD]BlackRock[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]15[/TD]
[TD]GE[/TD]
[TD]52[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Dan Washington[/TD]
[TD]78[/TD]
[TD]StateStreet[/TD]
[TD]90[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]George Bard[/TD]
[TD]92[/TD]
[TD]BNY[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Below is what I want to show up on Sheet 1 (from Sheet 2 Above) USING A MACRO
[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sales Office[/TD]
[TD]Responsible Party[/TD]
[TD]Company ID[/TD]
[TD]Company Name[/TD]
[TD]AUM (MM)[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]12[/TD]
[TD]Google[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]13[/TD]
[TD]BlackRock[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Boston[/TD]
[TD]Joe Smith[/TD]
[TD]15[/TD]
[TD]GE[/TD]
[TD]52[/TD]
[/TR]
</tbody>
[/TABLE]
[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]please help if you have any ideas!! I've tried multiple different ways.[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD]
[/TD]
[/TR]
</tbody><colgroup><col><col><col span="2"><col></colgroup>[/TABLE]