Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default Negative Currency

Greetings all,

I need to be able to make a series of labels in a user form to display a -ve
currency value in Red

For non -ve value I have no problem
Results.Controls("AProfit" & i) = Format(a - c, "$#,##0")

but I can't make it It trurn red with a -ve value

Results.Controls("AProfit" & i) = Format(a - c, "$#,##0;-[Red]$#,##0")

Any suggestions would be appreciated



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Negative Currency

Use the forecolor property of the label.

--
Regards,
Tom Ogilvy

"David Adamson" wrote in message
...
Greetings all,

I need to be able to make a series of labels in a user form to display

a -ve
currency value in Red

For non -ve value I have no problem
Results.Controls("AProfit" & i) = Format(a - c, "$#,##0")

but I can't make it It trurn red with a -ve value

Results.Controls("AProfit" & i) = Format(a - c, "$#,##0;-[Red]$#,##0")

Any suggestions would be appreciated





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default Negative Currency

Thanks for that.




"Tom Ogilvy" wrote in message
...
Use the forecolor property of the label.

--
Regards,
Tom Ogilvy

"David Adamson" wrote in message
...
Greetings all,

I need to be able to make a series of labels in a user form to display

a -ve
currency value in Red

For non -ve value I have no problem
Results.Controls("AProfit" & i) = Format(a - c, "$#,##0")

but I can't make it It trurn red with a -ve value

Results.Controls("AProfit" & i) = Format(a - c, "$#,##0;-[Red]$#,##0")

Any suggestions would be appreciated







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
How to add new currency Symbol in Format/Cell/Currency NOORZAD Excel Discussion (Misc queries) 2 June 22nd 09 07:59 AM
Formatting negative currency - doesn't have brackets RobWN Setting up and Configuration of Excel 2 August 10th 07 05:36 AM
negative currency with () and - joeldsmt Excel Discussion (Misc queries) 2 June 15th 05 10:06 PM
Conversion from currency value to currency text format Frank Kabel Excel Programming 1 August 18th 04 10:06 PM
Deleting a negative sign from an amount in a list (not trailing negative) Fleming Excel Programming 3 May 7th 04 03:50 PM


All times are GMT +1. The time now is 04:11 PM.

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"