Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change the format of a cell Programmatically
I am trying to change the format of a Cell (or a range) to currency. Right
now it's working just fine as this is: rangeAmount.NumberFormat = "$0.00"; But the Amount it gives me comes up like this: $123456789.00 What I want to get is a easier way to read the number: $123,456,789.00 or 123,456,789.00$ I don't care about the dollar sign, i want my number to be separated by commas, for visualisation facts Thanks In advance. Berge. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change the format of a cell Programmatically
Try this formatting mask:
"#,##0.00" -- Kevin Backmann "Bergfe" wrote: I am trying to change the format of a Cell (or a range) to currency. Right now it's working just fine as this is: rangeAmount.NumberFormat = "$0.00"; But the Amount it gives me comes up like this: $123456789.00 What I want to get is a easier way to read the number: $123,456,789.00 or 123,456,789.00$ I don't care about the dollar sign, i want my number to be separated by commas, for visualisation facts Thanks In advance. Berge. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change the format of a cell Programmatically
Try maybe "$#,000.00"
"Bergfe" wrote in message ... I am trying to change the format of a Cell (or a range) to currency. Right now it's working just fine as this is: rangeAmount.NumberFormat = "$0.00"; But the Amount it gives me comes up like this: $123456789.00 What I want to get is a easier way to read the number: $123,456,789.00 or 123,456,789.00$ I don't care about the dollar sign, i want my number to be separated by commas, for visualisation facts Thanks In advance. Berge. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change the format of a cell Programmatically
Thx a lot works just great. Thx for the help.
"Bergfe" wrote in message ... I am trying to change the format of a Cell (or a range) to currency. Right now it's working just fine as this is: rangeAmount.NumberFormat = "$0.00"; But the Amount it gives me comes up like this: $123456789.00 What I want to get is a easier way to read the number: $123,456,789.00 or 123,456,789.00$ I don't care about the dollar sign, i want my number to be separated by commas, for visualisation facts Thanks In advance. Berge. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Lock Cell Format - Allow copy and paste of data without format change | Excel Worksheet Functions | |||
change font colour if cell contains function - programmatically | Excel Programming | |||
Change cell format programmatically | Excel Programming | |||
Programmatically Format Comments | Excel Programming | |||
Programmatically Format Comments | Excel Programming |