BlairClark
New Member
- Joined
- Mar 23, 2019
- Messages
- 4
Hi,
I'm trying to create a macro that looks up the word "Insert" in column E2, copies the contents from A2:G20 and pastes in the row directly below (A3:G21). I'm hoping to loop the macro because there's the possibility that more rows need the same argument.
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]SKU[/TD]
[TD]Description[/TD]
[TD]Start[/TD]
[TD]End[/TD]
[TD]Comments[/TD]
[TD]Hours[/TD]
[TD]Cases[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1001[/TD]
[TD]LB 12x330[/TD]
[TD]25/03/19 05:30[/TD]
[TD]26/03/19 02:30[/TD]
[TD]Insert[/TD]
[TD][/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1003[/TD]
[TD]LB 24x330[/TD]
[TD]26/03/19 03:30[/TD]
[TD]26/03/19 22:00[/TD]
[TD][/TD]
[TD][/TD]
[TD]2579[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1010[/TD]
[TD]LR 12x330[/TD]
[TD]26/03/19 23:00[/TD]
[TD]27/03/19 19:30[/TD]
[TD]Insert[/TD]
[TD][/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]1011[/TD]
[TD]LR 24x330[/TD]
[TD]27/03/19 20:30[/TD]
[TD]28/03/19 16:00[/TD]
[TD]Insert[/TD]
[TD][/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]1009[/TD]
[TD]ST 12x330[/TD]
[TD]28/03/19 17:00[/TD]
[TD]28/03/19 23:00[/TD]
[TD][/TD]
[TD][/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]1008[/TD]
[TD]ST 24x330[/TD]
[TD]29/03/19 00:00[/TD]
[TD]29/03/19 20:00[/TD]
[TD][/TD]
[TD][/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]1007[/TD]
[TD]SP 12x330[/TD]
[TD]29/03/19 21:00[/TD]
[TD]30/03/19 04:00[/TD]
[TD]Insert[/TD]
[TD][/TD]
[TD]3790[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]1006[/TD]
[TD]SP 24x330[/TD]
[TD]30/03/19 05:00[/TD]
[TD]30/03/19 18:00[/TD]
[TD][/TD]
[TD][/TD]
[TD]3330[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be appreciated.
Blair
I'm trying to create a macro that looks up the word "Insert" in column E2, copies the contents from A2:G20 and pastes in the row directly below (A3:G21). I'm hoping to loop the macro because there's the possibility that more rows need the same argument.
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]SKU[/TD]
[TD]Description[/TD]
[TD]Start[/TD]
[TD]End[/TD]
[TD]Comments[/TD]
[TD]Hours[/TD]
[TD]Cases[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1001[/TD]
[TD]LB 12x330[/TD]
[TD]25/03/19 05:30[/TD]
[TD]26/03/19 02:30[/TD]
[TD]Insert[/TD]
[TD][/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1003[/TD]
[TD]LB 24x330[/TD]
[TD]26/03/19 03:30[/TD]
[TD]26/03/19 22:00[/TD]
[TD][/TD]
[TD][/TD]
[TD]2579[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1010[/TD]
[TD]LR 12x330[/TD]
[TD]26/03/19 23:00[/TD]
[TD]27/03/19 19:30[/TD]
[TD]Insert[/TD]
[TD][/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]1011[/TD]
[TD]LR 24x330[/TD]
[TD]27/03/19 20:30[/TD]
[TD]28/03/19 16:00[/TD]
[TD]Insert[/TD]
[TD][/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]1009[/TD]
[TD]ST 12x330[/TD]
[TD]28/03/19 17:00[/TD]
[TD]28/03/19 23:00[/TD]
[TD][/TD]
[TD][/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]1008[/TD]
[TD]ST 24x330[/TD]
[TD]29/03/19 00:00[/TD]
[TD]29/03/19 20:00[/TD]
[TD][/TD]
[TD][/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]1007[/TD]
[TD]SP 12x330[/TD]
[TD]29/03/19 21:00[/TD]
[TD]30/03/19 04:00[/TD]
[TD]Insert[/TD]
[TD][/TD]
[TD]3790[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]1006[/TD]
[TD]SP 24x330[/TD]
[TD]30/03/19 05:00[/TD]
[TD]30/03/19 18:00[/TD]
[TD][/TD]
[TD][/TD]
[TD]3330[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be appreciated.
Blair