joesalas
New Member
- Joined
- Jun 16, 2005
- Messages
- 27
Hello Wizards,
I'd like to ask your help with creating a macro.
There is one workbook that contains a main worksheet titled "Project List".
The 'Project List' worksheet has data headers or a total of 21 columns. Each row of 'Project List' contains data that must be distributed into multiple worksheets within the same workbook.
The 'Project List' Column A contains the name of the worksheet, where data should be pasted into.
Data Copied from 'Project List' should be pasted into the correlating worksheet starting at B5 and ending in B24.
Worksheet Title Example: Project List
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Worksheet title[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[TD]f[/TD]
[TD]g[/TD]
[TD]h[/TD]
[TD]i[/TD]
[TD]j[/TD]
[TD]k[/TD]
[TD]l[/TD]
[TD]m[/TD]
[TD]n[/TD]
[TD]o[/TD]
[TD]p[/TD]
[TD]q[/TD]
[TD]r[/TD]
[TD]s[/TD]
[TD]t[/TD]
[TD]u[/TD]
[/TR]
[TR]
[TD]car.red[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]plan.blue[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]train.green[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Worksheet Title Example: plane.blue
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]A1 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A3 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A4 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A5 title From Project List[/TD]
[TD]Start To Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A6[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A7[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A8[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A9[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A10[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A11[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A12[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A13[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A14[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A15[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A16[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A17[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A18[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A19[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A20[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A21[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A22[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A23[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A24[/TD]
[TD]STOP Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A25[/TD]
[TD]non related macro data[/TD]
[/TR]
[TR]
[TD]A26[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A27[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A28[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A29[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A30[/TD]
[TD]' '[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet Title Example: Car.RED
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]A1 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A3 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A4 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A5 title From Project List[/TD]
[TD]Start To Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A6[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A7[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A8[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A9[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A10[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A11[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A12[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A13[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A14[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A15[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A16[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A17[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A18[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A19[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A20[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A21[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A22[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A23[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A24[/TD]
[TD]STOP Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A25[/TD]
[TD]non related macro data[/TD]
[/TR]
[TR]
[TD]A26[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A27[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A28[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A29[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A30[/TD]
[TD]' '[/TD]
[/TR]
</tbody>[/TABLE]
I'd like to ask your help with creating a macro.
There is one workbook that contains a main worksheet titled "Project List".
The 'Project List' worksheet has data headers or a total of 21 columns. Each row of 'Project List' contains data that must be distributed into multiple worksheets within the same workbook.
The 'Project List' Column A contains the name of the worksheet, where data should be pasted into.
Data Copied from 'Project List' should be pasted into the correlating worksheet starting at B5 and ending in B24.
Worksheet Title Example: Project List
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Worksheet title[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[TD]f[/TD]
[TD]g[/TD]
[TD]h[/TD]
[TD]i[/TD]
[TD]j[/TD]
[TD]k[/TD]
[TD]l[/TD]
[TD]m[/TD]
[TD]n[/TD]
[TD]o[/TD]
[TD]p[/TD]
[TD]q[/TD]
[TD]r[/TD]
[TD]s[/TD]
[TD]t[/TD]
[TD]u[/TD]
[/TR]
[TR]
[TD]car.red[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]plan.blue[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]train.green[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Worksheet Title Example: plane.blue
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]A1 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A3 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A4 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A5 title From Project List[/TD]
[TD]Start To Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A6[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A7[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A8[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A9[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A10[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A11[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A12[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A13[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A14[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A15[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A16[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A17[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A18[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A19[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A20[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A21[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A22[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A23[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A24[/TD]
[TD]STOP Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A25[/TD]
[TD]non related macro data[/TD]
[/TR]
[TR]
[TD]A26[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A27[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A28[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A29[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A30[/TD]
[TD]' '[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet Title Example: Car.RED
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]A1 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A3 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A4 Title[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A5 title From Project List[/TD]
[TD]Start To Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A6[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A7[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A8[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A9[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A10[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A11[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A12[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A13[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A14[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A15[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A16[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A17[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A18[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A19[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A20[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A21[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A22[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A23[/TD]
[TD]Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A24[/TD]
[TD]STOP Paste Data from Project List[/TD]
[/TR]
[TR]
[TD]A25[/TD]
[TD]non related macro data[/TD]
[/TR]
[TR]
[TD]A26[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A27[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A28[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A29[/TD]
[TD]' '[/TD]
[/TR]
[TR]
[TD]A30[/TD]
[TD]' '[/TD]
[/TR]
</tbody>[/TABLE]