p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Excel VBA (http://p2p.wrox.com/forumdisplay.php?f=79)
-   -   Cell Accounting Format (http://p2p.wrox.com/showthread.php?t=62400)

jcarey00 September 27th, 2007 01:45 PM

Cell Accounting Format
 
How do I format a cell with the accounting format so that the $ is always on the far left of the cell regardless of the size of the number?

Shasur September 28th, 2007 04:47 AM

Here you have

Sub Format_Cell_Currency()

' Without Decimals
ActiveCell.NumberFormat = "$0"

' Without Decimals
ActiveCell.NumberFormat = "$0.00"

End Sub

Cheers
Shasur


http://www.dotnetdud.blogspot.com

VBA Tips & Tricks (http://www.vbadud.blogspot.com)


All times are GMT -4. The time now is 10:44 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.