Hi Experts,
I have something I am struggling to get my head around in terms of Macro code, and wondered if I could ask for help. Sample data below;
[TABLE="width: 500"]
<tbody>[TR]
[TD]Wo No[/TD]
[TD]Directive[/TD]
[TD]Actual Completion[/TD]
[TD]Reference No[/TD]
[TD]Nt[/TD]
[TD]Ot1[/TD]
[TD]Ot2[/TD]
[TD]Ot3[/TD]
[TD]Ot4[/TD]
[TD]Ns[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]1[/TD]
[TD]0.5[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]0.5[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
This is an export from a system that highlights the number of hours worked by various staff Rates (Nt, Ot1, Ot2 etc...).
The output from this needs to show a separate line for each Rate, therefore replicating the contents to produce this;
[TABLE="width: 500"]
<tbody>[TR]
[TD]Wo No[/TD]
[TD]Directive[/TD]
[TD]Actual Completion[/TD]
[TD]Reference No[/TD]
[TD]Rate[/TD]
[TD]Hours[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Nt[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Ot1[/TD]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Ot2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Ot3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Ot4[/TD]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Ns[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Is this even achievable?
Basically for each row in a set of Data I need copies of that in another Worksheet "per rate". So if the data set for example had 10 Rows with 6 different rates....it would transpose into 60 rows of one rate per row.
Messy and I've argued the case for changing the output of the report, but it's what the customer wants.
Anyone seen anything like this?
Thanks in advance,
Kevin
I have something I am struggling to get my head around in terms of Macro code, and wondered if I could ask for help. Sample data below;
[TABLE="width: 500"]
<tbody>[TR]
[TD]Wo No[/TD]
[TD]Directive[/TD]
[TD]Actual Completion[/TD]
[TD]Reference No[/TD]
[TD]Nt[/TD]
[TD]Ot1[/TD]
[TD]Ot2[/TD]
[TD]Ot3[/TD]
[TD]Ot4[/TD]
[TD]Ns[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]1[/TD]
[TD]0.5[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]0.5[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
This is an export from a system that highlights the number of hours worked by various staff Rates (Nt, Ot1, Ot2 etc...).
The output from this needs to show a separate line for each Rate, therefore replicating the contents to produce this;
[TABLE="width: 500"]
<tbody>[TR]
[TD]Wo No[/TD]
[TD]Directive[/TD]
[TD]Actual Completion[/TD]
[TD]Reference No[/TD]
[TD]Rate[/TD]
[TD]Hours[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Nt[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Ot1[/TD]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Ot2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Ot3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Ot4[/TD]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]92034[/TD]
[TD]Full Overhaul KRV1025618 36-SV-1623B 8.75 6x10[/TD]
[TD]12/08/2019[/TD]
[TD]AG10183391[/TD]
[TD]Ns[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Is this even achievable?
Basically for each row in a set of Data I need copies of that in another Worksheet "per rate". So if the data set for example had 10 Rows with 6 different rates....it would transpose into 60 rows of one rate per row.
Messy and I've argued the case for changing the output of the report, but it's what the customer wants.
Anyone seen anything like this?
Thanks in advance,
Kevin