Hello all,
I have a situation where i have multiple plants sending me files that i copy and paste into a master workbook with all the plants info. I have found ways to copy from workbook 1 to workbook 2, but only with specific ranges or an entire sheet (sort of hard coded). What i want to do is take a file and copy the certain cell ranges based on the Row header in Column A. Below is an example of a sheet i would get from a plant. The line items are in the 100's, and not always in the same order. So what i want to do, is take Column A, and read maintenance and then copy the cell data in b3 to f3 to another workbook. The target workbook may have maintenance in Row 6 instead of row 3, so it would find Maintenance in the target sheet and then paste the data in that row.
I have built some user forms with VB, and researched the copy features, but do not understand how to dynamically place the Data into the target sheet. Can anyone point me in a direction, if this is even possible?
Thanks in Advance.
[TABLE="width: 475"]
<colgroup><col><col span="2"><col><col><col></colgroup><tbody>[TR]
[TD]
[/TD]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[TD]Thursday[/TD]
[TD]Friday
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Maintenance[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]98[/TD]
[TD="align: right"]205[/TD]
[TD="align: right"]208[/TD]
[TD="align: right"]365[/TD]
[/TR]
[TR]
[TD]Supplies[/TD]
[TD="align: right"]55[/TD]
[TD="align: right"]605[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]805[/TD]
[TD="align: right"]95[/TD]
[/TR]
[TR]
[TD]Labor[/TD]
[TD="align: right"]5200[/TD]
[TD="align: right"]6300[/TD]
[TD="align: right"]3600[/TD]
[TD="align: right"]3600[/TD]
[TD="align: right"]3600[/TD]
[/TR]
[TR]
[TD]Materials[/TD]
[TD="align: right"]800[/TD]
[TD="align: right"]800[/TD]
[TD="align: right"]600[/TD]
[TD="align: right"]600[/TD]
[TD="align: right"]900[/TD]
[/TR]
</tbody>[/TABLE]
I have a situation where i have multiple plants sending me files that i copy and paste into a master workbook with all the plants info. I have found ways to copy from workbook 1 to workbook 2, but only with specific ranges or an entire sheet (sort of hard coded). What i want to do is take a file and copy the certain cell ranges based on the Row header in Column A. Below is an example of a sheet i would get from a plant. The line items are in the 100's, and not always in the same order. So what i want to do, is take Column A, and read maintenance and then copy the cell data in b3 to f3 to another workbook. The target workbook may have maintenance in Row 6 instead of row 3, so it would find Maintenance in the target sheet and then paste the data in that row.
I have built some user forms with VB, and researched the copy features, but do not understand how to dynamically place the Data into the target sheet. Can anyone point me in a direction, if this is even possible?
Thanks in Advance.
[TABLE="width: 475"]
<colgroup><col><col span="2"><col><col><col></colgroup><tbody>[TR]
[TD]
[/TD]
[TD]Monday[/TD]
[TD]Tuesday[/TD]
[TD]Wednesday[/TD]
[TD]Thursday[/TD]
[TD]Friday
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Maintenance[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]98[/TD]
[TD="align: right"]205[/TD]
[TD="align: right"]208[/TD]
[TD="align: right"]365[/TD]
[/TR]
[TR]
[TD]Supplies[/TD]
[TD="align: right"]55[/TD]
[TD="align: right"]605[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]805[/TD]
[TD="align: right"]95[/TD]
[/TR]
[TR]
[TD]Labor[/TD]
[TD="align: right"]5200[/TD]
[TD="align: right"]6300[/TD]
[TD="align: right"]3600[/TD]
[TD="align: right"]3600[/TD]
[TD="align: right"]3600[/TD]
[/TR]
[TR]
[TD]Materials[/TD]
[TD="align: right"]800[/TD]
[TD="align: right"]800[/TD]
[TD="align: right"]600[/TD]
[TD="align: right"]600[/TD]
[TD="align: right"]900[/TD]
[/TR]
</tbody>[/TABLE]