Hi All,
This should be easy but its not! I am wanting a VBA loop script.
1. which goes down column A and check if there are codes that are the same e.g below the first 4 are the same.
2. from this am wanting to create a new table which copies the code 000000HA once and then the 4 dates after in columns like this:
E F G H I
000000HA 26/02/2014 07/08/2014 13/08/2013 18/08/2014
A B C
[TABLE="width: 295"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]000000HA[/TD]
[TD]665587[/TD]
[TD]13/08/2014[/TD]
[/TR]
[TR]
[TD]000000HB[/TD]
[TD]529853[/TD]
[TD]26/02/2014[/TD]
[/TR]
[TR]
[TD]000000HB[/TD]
[TD]659642[/TD]
[TD]07/08/2014[/TD]
[/TR]
[TR]
[TD]000000HB[/TD]
[TD]668763[/TD]
[TD]18/08/2014[/TD]
[/TR]
[TR]
[TD]000000I5[/TD]
[TD]554083[/TD]
[TD]31/03/2014[/TD]
[/TR]
[TR]
[TD]000000IU[/TD]
[TD]656913[/TD]
[TD]04/08/2014[/TD]
[/TR]
[TR]
[TD]000000KL[/TD]
[TD]500644[/TD]
[TD]22/01/2014[/TD]
[/TR]
[TR]
[TD]000000LN[/TD]
[TD]560331[/TD]
[TD]07/04/2014[/TD]
[/TR]
[TR]
[TD]000000LN[/TD]
[TD]652808[/TD]
[TD]30/07/2014[/TD]
[/TR]
[TR]
[TD]000000LZ[/TD]
[TD]640351[/TD]
[TD]15/07/2014[/TD]
[/TR]
</tbody>[/TABLE]
Can any one help?
This should be easy but its not! I am wanting a VBA loop script.
1. which goes down column A and check if there are codes that are the same e.g below the first 4 are the same.
2. from this am wanting to create a new table which copies the code 000000HA once and then the 4 dates after in columns like this:
E F G H I
000000HA 26/02/2014 07/08/2014 13/08/2013 18/08/2014
A B C
[TABLE="width: 295"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]000000HA[/TD]
[TD]665587[/TD]
[TD]13/08/2014[/TD]
[/TR]
[TR]
[TD]000000HB[/TD]
[TD]529853[/TD]
[TD]26/02/2014[/TD]
[/TR]
[TR]
[TD]000000HB[/TD]
[TD]659642[/TD]
[TD]07/08/2014[/TD]
[/TR]
[TR]
[TD]000000HB[/TD]
[TD]668763[/TD]
[TD]18/08/2014[/TD]
[/TR]
[TR]
[TD]000000I5[/TD]
[TD]554083[/TD]
[TD]31/03/2014[/TD]
[/TR]
[TR]
[TD]000000IU[/TD]
[TD]656913[/TD]
[TD]04/08/2014[/TD]
[/TR]
[TR]
[TD]000000KL[/TD]
[TD]500644[/TD]
[TD]22/01/2014[/TD]
[/TR]
[TR]
[TD]000000LN[/TD]
[TD]560331[/TD]
[TD]07/04/2014[/TD]
[/TR]
[TR]
[TD]000000LN[/TD]
[TD]652808[/TD]
[TD]30/07/2014[/TD]
[/TR]
[TR]
[TD]000000LZ[/TD]
[TD]640351[/TD]
[TD]15/07/2014[/TD]
[/TR]
</tbody>[/TABLE]
Can any one help?
