Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,316
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock Cell Format - Allow copy and paste of data without format change Chris12InKC Excel Worksheet Functions 2 May 9th 23 07:42 PM
change font colour if cell contains function - programmatically fitful_thought Excel Programming 3 October 30th 04 01:38 AM
Change cell format programmatically Robert[_19_] Excel Programming 1 January 6th 04 05:04 PM
Programmatically Format Comments hglamy[_2_] Excel Programming 2 November 19th 03 06:29 PM
Programmatically Format Comments hglamy[_2_] Excel Programming 1 November 18th 03 09:45 PM


All times are GMT +1. The time now is 10:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"