vidhate0123
New Member
- Joined
- Jun 24, 2015
- Messages
- 18
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]FROM[/TD]
[TD]TO[/TD]
[TD]SIDE[/TD]
[TD]TYPE[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]20[/TD]
[TD]LHS[/TD]
[TD]PQC[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]30[/TD]
[TD]LHS[/TD]
[TD]DLC[/TD]
[/TR]
[TR]
[TD]35[/TD]
[TD]50[/TD]
[TD]BHS[/TD]
[TD]PQC[/TD]
[/TR]
[TR]
[TD]65[/TD]
[TD]67[/TD]
[TD]RHS[/TD]
[TD]DLC[/TD]
[/TR]
[TR]
[TD]68[/TD]
[TD]70[/TD]
[TD]RHS[/TD]
[TD]PQC[/TD]
[/TR]
[TR]
[TD]71[/TD]
[TD]77[/TD]
[TD]BHS[/TD]
[TD]DLC[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]90[/TD]
[TD]LHS[/TD]
[TD]DLC[/TD]
[/TR]
[TR]
[TD]91[/TD]
[TD]95[/TD]
[TD]RHS[/TD]
[TD]PQC[/TD]
[/TR]
[TR]
[TD]95[/TD]
[TD]98[/TD]
[TD]BHS[/TD]
[TD]PQC[/TD]
[/TR]
</tbody>[/TABLE]
In above table I want to do made VBA code as requirement below.
First sort the rows Heading "TYPE" and then sort by "SIDE". after than I want to convert "BHS"rows to 2 rows Side name LHS & RHS ,other data in row remain same.
(LHS mean left hand side,RHS means Right hand Side, BHS means Both hand Side)
<tbody>[TR]
[TD]FROM[/TD]
[TD]TO[/TD]
[TD]SIDE[/TD]
[TD]TYPE[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]20[/TD]
[TD]LHS[/TD]
[TD]PQC[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]30[/TD]
[TD]LHS[/TD]
[TD]DLC[/TD]
[/TR]
[TR]
[TD]35[/TD]
[TD]50[/TD]
[TD]BHS[/TD]
[TD]PQC[/TD]
[/TR]
[TR]
[TD]65[/TD]
[TD]67[/TD]
[TD]RHS[/TD]
[TD]DLC[/TD]
[/TR]
[TR]
[TD]68[/TD]
[TD]70[/TD]
[TD]RHS[/TD]
[TD]PQC[/TD]
[/TR]
[TR]
[TD]71[/TD]
[TD]77[/TD]
[TD]BHS[/TD]
[TD]DLC[/TD]
[/TR]
[TR]
[TD]88[/TD]
[TD]90[/TD]
[TD]LHS[/TD]
[TD]DLC[/TD]
[/TR]
[TR]
[TD]91[/TD]
[TD]95[/TD]
[TD]RHS[/TD]
[TD]PQC[/TD]
[/TR]
[TR]
[TD]95[/TD]
[TD]98[/TD]
[TD]BHS[/TD]
[TD]PQC[/TD]
[/TR]
</tbody>[/TABLE]
In above table I want to do made VBA code as requirement below.
First sort the rows Heading "TYPE" and then sort by "SIDE". after than I want to convert "BHS"rows to 2 rows Side name LHS & RHS ,other data in row remain same.
(LHS mean left hand side,RHS means Right hand Side, BHS means Both hand Side)