How could I rearrange the columns by the columns header name.
I need to process a report on weekly basis,the raw worksheet has 23 columns.I abstract a part of them as example.
Raw columns sequence:
[TABLE="width: 500"]
<tbody>[TR]
[TD]QTY[/TD]
[TD]Payment Terms[/TD]
[TD]Contract No.[/TD]
[/TR]
</tbody>[/TABLE]
Desired columns sequence:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Contract No.[/TD]
[TD]Payment terms[/TD]
[TD]QTY[/TD]
[/TR]
</tbody>[/TABLE]
Any idea how to automatize the columns rearrangement with VBA code?
Many thanks in advance.
I need to process a report on weekly basis,the raw worksheet has 23 columns.I abstract a part of them as example.
Raw columns sequence:
[TABLE="width: 500"]
<tbody>[TR]
[TD]QTY[/TD]
[TD]Payment Terms[/TD]
[TD]Contract No.[/TD]
[/TR]
</tbody>[/TABLE]
Desired columns sequence:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Contract No.[/TD]
[TD]Payment terms[/TD]
[TD]QTY[/TD]
[/TR]
</tbody>[/TABLE]
Any idea how to automatize the columns rearrangement with VBA code?
Many thanks in advance.