Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jouiooui,
Try: '============= Public Sub Tester() Dim Rng As Range Dim rCell As Range Set Rng = Range("B85:B86") For Each rCell In Rng.Cells With rCell .Value = -Abs(.Value) .Font.Name = "Arial" .Font.Bold = True .NumberFormat = "$#,##0.00_);[Red]($#,##0.00)" End With Next rCell End Sub '<<============= --- Regards, Norman "JOUIOUI" wrote in message ... Hi Norman, Thanks for this code, it formats the cell, however it doesn't change the data to be a negative. I'm using the currency in those cells in an accounting balance sheet and I need it to be a negative. Is there a way to automatically put a - sign in front of any currency value copied into that cell. Thanks again. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to add new currency Symbol in Format/Cell/Currency | Excel Discussion (Misc queries) | |||
Format Currency Cell | Excel Worksheet Functions | |||
How to set 2 currency format in 1 cell?? | Excel Discussion (Misc queries) | |||
Format Currency in-cell | Excel Worksheet Functions | |||
forcing cell format type in excel using com? | Excel Programming |