browncountry
New Member
- Joined
- Feb 2, 2019
- Messages
- 13
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]
[/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Part Number
[/TD]
[TD]Description
[/TD]
[TD]Qty
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]123
[/TD]
[TD]abc
[/TD]
[TD]3
[/TD]
[TD][/TD]
[TD]123
[/TD]
[TD]abc
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]456
[/TD]
[TD]def
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]123
[/TD]
[TD]abc
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]789
[/TD]
[TD]ghi
[/TD]
[TD]2
[/TD]
[TD][/TD]
[TD]123
[/TD]
[TD]abc
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]456
[/TD]
[TD]def
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]789
[/TD]
[TD]ghi
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]789
[/TD]
[TD]ghi
[/TD]
[/TR]
</tbody>[/TABLE]
I have searched forums and am able to copy and paste a range a certain number of times based on a cell value in VBA, but I cannot seem to get the results I want as shown in the table above. If anyone has time to help, my goal is to select the part number and description and paste it the amount of times the qty column displays and do this until the last part number. My end result is displayed in E2:F7. Thanks in advance!
<tbody>[TR]
[TD]
[/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Part Number
[/TD]
[TD]Description
[/TD]
[TD]Qty
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]123
[/TD]
[TD]abc
[/TD]
[TD]3
[/TD]
[TD][/TD]
[TD]123
[/TD]
[TD]abc
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]456
[/TD]
[TD]def
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]123
[/TD]
[TD]abc
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]789
[/TD]
[TD]ghi
[/TD]
[TD]2
[/TD]
[TD][/TD]
[TD]123
[/TD]
[TD]abc
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]456
[/TD]
[TD]def
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]789
[/TD]
[TD]ghi
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]789
[/TD]
[TD]ghi
[/TD]
[/TR]
</tbody>[/TABLE]
I have searched forums and am able to copy and paste a range a certain number of times based on a cell value in VBA, but I cannot seem to get the results I want as shown in the table above. If anyone has time to help, my goal is to select the part number and description and paste it the amount of times the qty column displays and do this until the last part number. My end result is displayed in E2:F7. Thanks in advance!