Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default format chart textbox font

I have a text box linked to a cell in a table in the same workbook.
I want to have the font color of the text to reflect that which is in the
cell.
e.g. I have a dollar figure in the cell. It is in a black front for positive
values, and red with parenthese () for negitive figures. At present, I have a
negitive dollar figure which reflects in the sheet as a black $(3,813.47).

How can I make the font format in the text box follow the spreadsheet's
format?
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default format chart textbox font

Text boxes do not have a number format property. There are two alternative
ways to get what you want:

Use data labels instead, which are associated with data points.

Use two more cells in the sheet, one which shows positive and zero values
only, the other which shows negative values only. In other words, use these
formulas:

=IF(A1=0,A1,"")
=IF(A1<0,A1,"")

Place two text boxes in the chart, one linked to the first cell and
formatted with black text, the other linked to the second cell and formatted
with red text. Align these textboxes to coincide with each other.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"Kim Jackson" <Kim wrote in message
...
I have a text box linked to a cell in a table in the same workbook.
I want to have the font color of the text to reflect that which is in the
cell.
e.g. I have a dollar figure in the cell. It is in a black front for
positive
values, and red with parenthese () for negitive figures. At present, I
have a
negitive dollar figure which reflects in the sheet as a black $(3,813.47).

How can I make the font format in the text box follow the spreadsheet's
format?



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default format chart textbox font

Much thanks Jon. This worked perfectly.

"Jon Peltier" wrote:

Text boxes do not have a number format property. There are two alternative
ways to get what you want:

Use data labels instead, which are associated with data points.

Use two more cells in the sheet, one which shows positive and zero values
only, the other which shows negative values only. In other words, use these
formulas:

=IF(A1=0,A1,"")
=IF(A1<0,A1,"")

Place two text boxes in the chart, one linked to the first cell and
formatted with black text, the other linked to the second cell and formatted
with red text. Align these textboxes to coincide with each other.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"Kim Jackson" <Kim wrote in message
...
I have a text box linked to a cell in a table in the same workbook.
I want to have the font color of the text to reflect that which is in the
cell.
e.g. I have a dollar figure in the cell. It is in a black front for
positive
values, and red with parenthese () for negitive figures. At present, I
have a
negitive dollar figure which reflects in the sheet as a black $(3,813.47).

How can I make the font format in the text box follow the spreadsheet's
format?




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
textbox font colour Pilot Excel Discussion (Misc queries) 2 March 25th 08 03:13 PM
Change colour of font in a textbox? capt Excel Discussion (Misc queries) 2 January 24th 08 04:51 PM
chart description-font format [email protected] Charts and Charting in Excel 1 August 10th 07 11:56 AM
TextBox format? AOU Excel Discussion (Misc queries) 4 June 12th 07 11:24 PM
textbox font size AskExcel Excel Worksheet Functions 3 September 16th 06 05:24 AM


All times are GMT +1. The time now is 02:07 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"