Hi,
I'm new to VBA and I know that this might be a big question, but here you go.
I have a sheet with data that look a bit like this and the columns continues with the next date:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A1[/TD]
[TD]B1[/TD]
[TD]C1[/TD]
[TD]D1[/TD]
[TD]E1[/TD]
[TD]F1[/TD]
[TD]G1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Info1[/TD]
[TD]Info2[/TD]
[TD]Info3[/TD]
[TD]Info4[/TD]
[TD]12-09-2017[/TD]
[TD]13-09-2017[/TD]
[TD]....[/TD]
[/TR]
[TR]
[TD]Simon[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want this data to be copied in to a new sheet like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Info1[/TD]
[TD]Info2[/TD]
[TD]Info3[/TD]
[TD]Info4[/TD]
[TD]Date[/TD]
[TD]Data from that date[/TD]
[/TR]
[TR]
[TD]Simon[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]12-09-2017[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Simon[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]13-09-2017[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]12-09-2017[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]13-09-2017[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I can't figure out how to copy the first part of the row directly but 'split up' the other part. At least not in a 'simple' code.
I'm new to VBA and I know that this might be a big question, but here you go.
I have a sheet with data that look a bit like this and the columns continues with the next date:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A1[/TD]
[TD]B1[/TD]
[TD]C1[/TD]
[TD]D1[/TD]
[TD]E1[/TD]
[TD]F1[/TD]
[TD]G1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Info1[/TD]
[TD]Info2[/TD]
[TD]Info3[/TD]
[TD]Info4[/TD]
[TD]12-09-2017[/TD]
[TD]13-09-2017[/TD]
[TD]....[/TD]
[/TR]
[TR]
[TD]Simon[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want this data to be copied in to a new sheet like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Info1[/TD]
[TD]Info2[/TD]
[TD]Info3[/TD]
[TD]Info4[/TD]
[TD]Date[/TD]
[TD]Data from that date[/TD]
[/TR]
[TR]
[TD]Simon[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]12-09-2017[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Simon[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]13-09-2017[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]12-09-2017[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]XX[/TD]
[TD]13-09-2017[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I can't figure out how to copy the first part of the row directly but 'split up' the other part. At least not in a 'simple' code.