browncountry
New Member
- Joined
- Feb 2, 2019
- Messages
- 13
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item Number (Kit)
[/TD]
[TD]Qty
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Kit 456
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Kit 123
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Kit 789
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item Number (Kit)
[/TD]
[TD]Parts within kit
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Kit 123
[/TD]
[TD]Part 1
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][/TD]
[TD]Part 2
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Kit 456
[/TD]
[TD]Part 1
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][/TD]
[TD]Part 2
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]Kit 789
[/TD]
[TD]Part 1
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD]Part 2
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD][/TD]
[TD]Part 3
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: center"]SHEET 2
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have a sheet labeled "Sheet 1" with a list of part numbers (which are kits with multiple parts that go into them) and their quantities as shown above.
Sheet 2 is a master list of kits and the parts that belong to them. My objective is to search Sheet 2 for kits showing in Sheet 1 and copy and paste them in Sheet 3 the amount of times listed in Sheet 1 until I get to the last row of Sheet 1 with VBA code. Does that make sense?
Sheet 1 is an input sheet and Sheet 3 is an output sheet. If anyone has any suggestions on how to go about doing this, it would be very much appreciated! Thanks in advance.
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item Number (Kit)
[/TD]
[TD]Qty
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Kit 456
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Kit 123
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Kit 789
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
SHEET 1
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Item Number (Kit)
[/TD]
[TD]Parts within kit
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Kit 123
[/TD]
[TD]Part 1
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][/TD]
[TD]Part 2
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Kit 456
[/TD]
[TD]Part 1
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][/TD]
[TD]Part 2
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]Kit 789
[/TD]
[TD]Part 1
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD]Part 2
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD][/TD]
[TD]Part 3
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: center"]SHEET 2
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have a sheet labeled "Sheet 1" with a list of part numbers (which are kits with multiple parts that go into them) and their quantities as shown above.
Sheet 2 is a master list of kits and the parts that belong to them. My objective is to search Sheet 2 for kits showing in Sheet 1 and copy and paste them in Sheet 3 the amount of times listed in Sheet 1 until I get to the last row of Sheet 1 with VBA code. Does that make sense?
Sheet 1 is an input sheet and Sheet 3 is an output sheet. If anyone has any suggestions on how to go about doing this, it would be very much appreciated! Thanks in advance.