Hello!
I'm stuck trying to gaps into a table, I hope this makes sense
It starts off like this with around 10,000 rows and some redundant columns to delete but I need to (currently) go through and manually add a break in the table to add the order total and total size
I'm wondering if I can create a macro to do this quicker and where is the best place to start with figuring out how to do it. I tried recording a macro but it only did the task on one line before crashing. Any advice is greatly appreciated!!
[TABLE="width: 500"]
<tbody>[TR]
[TD]Ref[/TD]
[TD]Cost[/TD]
[TD]Size[/TD]
[TD]Info[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]9[/TD]
[TD]17.8[/TD]
[TD]Product 1[/TD]
[TD]14/02/18[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]101[/TD]
[TD]39.5[/TD]
[TD]Product 2[/TD]
[TD]14/02/18[/TD]
[/TR]
[TR]
[TD]1235[/TD]
[TD]33[/TD]
[TD]6.6[/TD]
[TD]Product 97[/TD]
[TD]19/04/18[/TD]
[/TR]
</tbody>[/TABLE]
Will need to turn into (Just image but with 400 Orders and 10,000 rows):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Ref[/TD]
[TD]Cost[/TD]
[TD]Size[/TD]
[TD]Info[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]9[/TD]
[TD]17.8[/TD]
[TD]Product 1[/TD]
[TD]14/02/18[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]101[/TD]
[TD]39.5[/TD]
[TD]Product 2[/TD]
[TD]14/02/18[/TD]
[/TR]
[TR]
[TD]TOTAL[/TD]
[TD]110[/TD]
[TD]57.3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1235[/TD]
[TD]33[/TD]
[TD]6.6[/TD]
[TD]Product 97[/TD]
[TD]19/04/18[/TD]
[/TR]
</tbody>[/TABLE]
Is it possible to create a break every time the order reference changes and add in the total cells like above?
I'm stuck trying to gaps into a table, I hope this makes sense
It starts off like this with around 10,000 rows and some redundant columns to delete but I need to (currently) go through and manually add a break in the table to add the order total and total size
I'm wondering if I can create a macro to do this quicker and where is the best place to start with figuring out how to do it. I tried recording a macro but it only did the task on one line before crashing. Any advice is greatly appreciated!!
[TABLE="width: 500"]
<tbody>[TR]
[TD]Ref[/TD]
[TD]Cost[/TD]
[TD]Size[/TD]
[TD]Info[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]9[/TD]
[TD]17.8[/TD]
[TD]Product 1[/TD]
[TD]14/02/18[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]101[/TD]
[TD]39.5[/TD]
[TD]Product 2[/TD]
[TD]14/02/18[/TD]
[/TR]
[TR]
[TD]1235[/TD]
[TD]33[/TD]
[TD]6.6[/TD]
[TD]Product 97[/TD]
[TD]19/04/18[/TD]
[/TR]
</tbody>[/TABLE]
Will need to turn into (Just image but with 400 Orders and 10,000 rows):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Ref[/TD]
[TD]Cost[/TD]
[TD]Size[/TD]
[TD]Info[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]9[/TD]
[TD]17.8[/TD]
[TD]Product 1[/TD]
[TD]14/02/18[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]101[/TD]
[TD]39.5[/TD]
[TD]Product 2[/TD]
[TD]14/02/18[/TD]
[/TR]
[TR]
[TD]TOTAL[/TD]
[TD]110[/TD]
[TD]57.3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1235[/TD]
[TD]33[/TD]
[TD]6.6[/TD]
[TD]Product 97[/TD]
[TD]19/04/18[/TD]
[/TR]
</tbody>[/TABLE]
Is it possible to create a break every time the order reference changes and add in the total cells like above?