PLEASE HELP!
I am trying to write a macro which will be used on multiple spread sheets in excel.
I need to rearrange the columns and it may be necessary to add column to.
certain columns will need extra digit added and a formula needs to be done too.
I think the best way to do this is an example:
How I receive the spread sheet -
Column A B C D E F
[TABLE="width: 1241"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]CODE[/TD]
[TD]DESTINATION[/TD]
[TD]AT USD ($)[/TD]
[TD] DATE[/TD]
[TD]STATUS[/TD]
[TD]ROUTE[/TD]
[/TR]
[TR]
[TD]7840[/TD]
[TD]ABKHAZIA[/TD]
[TD="align: right"]0.0483 [/TD]
[TD] 06/08/2013[/TD]
[TD]DECREASE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]79407[/TD]
[TD]ABKHAZIA-MOBILE AMOBILE[/TD]
[TD="align: right"]0.0488 [/TD]
[TD] 06/08/2013[/TD]
[TD]DECREASE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]79409[/TD]
[TD]ABKHAZIA-MOBILE AQUAFON[/TD]
[TD="align: right"]0.0488 [/TD]
[TD] 06/08/2013[/TD]
[TD]DECREASE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]672[/TD]
[TD]AET ANTARCTICA[/TD]
[TD="align: right"]0.9805 [/TD]
[TD] 06/08/2013[/TD]
[TD]NO CHANGE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]67212[/TD]
[TD]AET ANTARCTICA CASEY BASE[/TD]
[TD="align: right"]0.9080 [/TD]
[TD] 06/08/2013[/TD]
[TD]DECREASE[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This then need a micro to be applied so it has this set out -
Column A B C D E F G H
Rates Prefix Area Prefix Rate Type Area Name Billing Rate Billing Cycal Min Cost Lock type
(empty) (column A above (alway states (column B above) (column C above (always 1/1 (column C above ("No Lock" on all)
with two "0" international) divided by 6 with unless column with "000" added
added to front) "000" added so D has mexico to creat 7 didgits)
each 7 digits long) in field which
makes it 60/60)
It would be better if the reorganizer micro was separate from the formula and formate macro.
I would love it if someone could help me because the macro iv written just isn't working and I don't understand why
Thank you
I am trying to write a macro which will be used on multiple spread sheets in excel.
I need to rearrange the columns and it may be necessary to add column to.
certain columns will need extra digit added and a formula needs to be done too.
I think the best way to do this is an example:
How I receive the spread sheet -
Column A B C D E F
[TABLE="width: 1241"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]CODE[/TD]
[TD]DESTINATION[/TD]
[TD]AT USD ($)[/TD]
[TD] DATE[/TD]
[TD]STATUS[/TD]
[TD]ROUTE[/TD]
[/TR]
[TR]
[TD]7840[/TD]
[TD]ABKHAZIA[/TD]
[TD="align: right"]0.0483 [/TD]
[TD] 06/08/2013[/TD]
[TD]DECREASE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]79407[/TD]
[TD]ABKHAZIA-MOBILE AMOBILE[/TD]
[TD="align: right"]0.0488 [/TD]
[TD] 06/08/2013[/TD]
[TD]DECREASE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]79409[/TD]
[TD]ABKHAZIA-MOBILE AQUAFON[/TD]
[TD="align: right"]0.0488 [/TD]
[TD] 06/08/2013[/TD]
[TD]DECREASE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]672[/TD]
[TD]AET ANTARCTICA[/TD]
[TD="align: right"]0.9805 [/TD]
[TD] 06/08/2013[/TD]
[TD]NO CHANGE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]67212[/TD]
[TD]AET ANTARCTICA CASEY BASE[/TD]
[TD="align: right"]0.9080 [/TD]
[TD] 06/08/2013[/TD]
[TD]DECREASE[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This then need a micro to be applied so it has this set out -
Column A B C D E F G H
Rates Prefix Area Prefix Rate Type Area Name Billing Rate Billing Cycal Min Cost Lock type
(empty) (column A above (alway states (column B above) (column C above (always 1/1 (column C above ("No Lock" on all)
with two "0" international) divided by 6 with unless column with "000" added
added to front) "000" added so D has mexico to creat 7 didgits)
each 7 digits long) in field which
makes it 60/60)
It would be better if the reorganizer micro was separate from the formula and formate macro.
I would love it if someone could help me because the macro iv written just isn't working and I don't understand why
Thank you