Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Formatting number as accounting

I have not had any luck formatting a number entered to a
worksheet by a procedure so that it appears in Accounting
rather than Currency format. If the cell width is large
enough, they do appear differently when using the cell
format feature manually. I have tried: format
(thenumber,"$* ###,###.##") and (thenumber,"$###,###.##")
without success. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Formatting number as accounting

If I understand your problem...

I think you want to format the cell separately from entering the value:

With ActiveCell
.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"
.Value = 1234567
End With


--
Jim Rech
Excel MVP
"Rick" wrote in message
...
|I have not had any luck formatting a number entered to a
| worksheet by a procedure so that it appears in Accounting
| rather than Currency format. If the cell width is large
| enough, they do appear differently when using the cell
| format feature manually. I have tried: format
| (thenumber,"$* ###,###.##") and (thenumber,"$###,###.##")
| without success. Any ideas?


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
Difference between Currency and Accounting number format. computerkiller Excel Discussion (Misc queries) 3 April 19th 23 02:12 PM
Formatting a number as accounting in a text reference. Pradhan Excel Discussion (Misc queries) 3 July 18th 09 10:56 PM
Number format €“ accounting symbols Mary Ann Excel Discussion (Misc queries) 1 October 1st 08 10:14 PM
Custom number format - Accounting [email protected] Excel Worksheet Functions 0 October 11th 05 06:21 PM
Accounting Style Number Button Sabine Excel Worksheet Functions 3 February 2nd 05 05:25 PM


All times are GMT +1. The time now is 07:45 AM.

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

About Us

"It's about Microsoft Excel"