Dear Community,
I have a daily report which is currently manually sorted. I would like to do this automated with a macro if possible.
The "Row Headers" look something like this:
[TABLE="width: 735"]
<tbody>[TR]
[TD]302(USD)[/TD]
[TD]304(EUR)[/TD]
[TD]305(USD)[/TD]
[TD]307(USD)[/TD]
[TD]308(USD)[/TD]
[TD]310(GBP)[/TD]
[TD]311(USD)[/TD]
[TD]342(EUR)[/TD]
[TD]368(EUR) ....[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
It can be any number between 300 - 599, followed by 3 currencies, USD, GBP, EUR in brackets. This changes everyday depending on the report.
We manually sort by Ascending Number + (USD), then (GBP), and lastly (EUR).
This is done by checking the header in Row 1, apply above condition, and cut-paste column to the correct Spot manually.
In the example above, i would manually cut out column with header 304(EUR) and paste it before column with header 342(EUR).
Is there a way to automate this with a Macro?
I tried using Custom Lists without success. Appreciate any help or guidance in this matter!
Let me know if anything is unclear or you need more information.
Thanks so much in advance,
Kind regards
ExcelFabs
I have a daily report which is currently manually sorted. I would like to do this automated with a macro if possible.
The "Row Headers" look something like this:
[TABLE="width: 735"]
<tbody>[TR]
[TD]302(USD)[/TD]
[TD]304(EUR)[/TD]
[TD]305(USD)[/TD]
[TD]307(USD)[/TD]
[TD]308(USD)[/TD]
[TD]310(GBP)[/TD]
[TD]311(USD)[/TD]
[TD]342(EUR)[/TD]
[TD]368(EUR) ....[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
It can be any number between 300 - 599, followed by 3 currencies, USD, GBP, EUR in brackets. This changes everyday depending on the report.
We manually sort by Ascending Number + (USD), then (GBP), and lastly (EUR).
This is done by checking the header in Row 1, apply above condition, and cut-paste column to the correct Spot manually.
In the example above, i would manually cut out column with header 304(EUR) and paste it before column with header 342(EUR).
Is there a way to automate this with a Macro?
I tried using Custom Lists without success. Appreciate any help or guidance in this matter!
Let me know if anything is unclear or you need more information.
Thanks so much in advance,
Kind regards
ExcelFabs