ExcelHelpNeeded99
New Member
- Joined
- Oct 6, 2017
- Messages
- 13
Hi there,
Hoping someone can help.
I have a workbook with hundreds of sheets and I want to copy only for the ones with a "," in the sheet name. (These are the sheets with peoples names, one sheet per person)
All sheets are formatted the exact same way but the headers for row 2 through 33 are in column A with data in column C but on row 34 they switch to header being in row 34 with data in rows 35 through 52.
On the sheet called "Master2" I want to repeat the formal name in column A and show every event attended by that person on a separate row. Then it goes to the next sheet and does the same and so on.
Please can you help with the code?
Thanks
[TABLE="width: 500"]
<tbody>[TR]
[TD]DATA on Multiple SHEETS[/TD]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Row 5[/TD]
[TD]Formal Name[/TD]
[TD][/TD]
[TD]Miguel Smith[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Row 34[/TD]
[TD]Date[/TD]
[TD]Note[/TD]
[TD]Speaker[/TD]
[TD]Topic[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Row 35 through 52[/TD]
[TD]5/12/16[/TD]
[TD]xyz[/TD]
[TD]Y[/TD]
[TD]Politics[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3/31/17[/TD]
[TD]abc[/TD]
[TD]n[/TD]
[TD]n/A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Master 2[/TD]
[TD]Column A (Formal Name)[/TD]
[TD]Column B (Date)[/TD]
[TD]Column C (Note)[/TD]
[TD]Column D (Speaker)[/TD]
[TD]Column E (Topic)[/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD]Miguel Smith[/TD]
[TD]5/12/16[/TD]
[TD]xyz[/TD]
[TD]Y[/TD]
[TD]Politics[/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD]Miguel Smith[/TD]
[TD]3/31/17[/TD]
[TD]abc[/TD]
[TD]n[/TD]
[TD]n/a[/TD]
[/TR]
[TR]
[TD]Row4[/TD]
[TD]John Roberts[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[/TR]
</tbody>[/TABLE]
Hoping someone can help.
I have a workbook with hundreds of sheets and I want to copy only for the ones with a "," in the sheet name. (These are the sheets with peoples names, one sheet per person)
All sheets are formatted the exact same way but the headers for row 2 through 33 are in column A with data in column C but on row 34 they switch to header being in row 34 with data in rows 35 through 52.
On the sheet called "Master2" I want to repeat the formal name in column A and show every event attended by that person on a separate row. Then it goes to the next sheet and does the same and so on.
Please can you help with the code?
Thanks
[TABLE="width: 500"]
<tbody>[TR]
[TD]DATA on Multiple SHEETS[/TD]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Row 5[/TD]
[TD]Formal Name[/TD]
[TD][/TD]
[TD]Miguel Smith[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Row 34[/TD]
[TD]Date[/TD]
[TD]Note[/TD]
[TD]Speaker[/TD]
[TD]Topic[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Row 35 through 52[/TD]
[TD]5/12/16[/TD]
[TD]xyz[/TD]
[TD]Y[/TD]
[TD]Politics[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3/31/17[/TD]
[TD]abc[/TD]
[TD]n[/TD]
[TD]n/A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Master 2[/TD]
[TD]Column A (Formal Name)[/TD]
[TD]Column B (Date)[/TD]
[TD]Column C (Note)[/TD]
[TD]Column D (Speaker)[/TD]
[TD]Column E (Topic)[/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD]Miguel Smith[/TD]
[TD]5/12/16[/TD]
[TD]xyz[/TD]
[TD]Y[/TD]
[TD]Politics[/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD]Miguel Smith[/TD]
[TD]3/31/17[/TD]
[TD]abc[/TD]
[TD]n[/TD]
[TD]n/a[/TD]
[/TR]
[TR]
[TD]Row4[/TD]
[TD]John Roberts[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: