ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   chart Label text referencing worksheet cell value (https://www.excelbanter.com/charts-charting-excel/150155-chart-label-text-referencing-worksheet-cell-value.html)

OTWarrior via OfficeKB.com

chart Label text referencing worksheet cell value
 
I have a very simple bar chart that I want to display the values and the
percentages of those values.

For some reason, the percentage option is disabled under chart options, so i
thought I would use a label instead, and send the calculation to it so it is
dynamic. Sounds simple right?

Wrong!

I can only pass raw text into the label:

Selection.Characters.Text = "100%"

the following does not work, and the label disappears:
.Selection.Characters.Text = Sheets("tbl_Voids").Range("A6794").Value

is there a way of doing this?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...chart/200707/1


Jon Peltier

chart Label text referencing worksheet cell value
 
Check out Rob Bovey's Chart Labeler at http://appspro.com.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"OTWarrior via OfficeKB.com" <u33269@uwe wrote in message
news:751d5c365ae10@uwe...
I have a very simple bar chart that I want to display the values and the
percentages of those values.

For some reason, the percentage option is disabled under chart options, so
i
thought I would use a label instead, and send the calculation to it so it
is
dynamic. Sounds simple right?

Wrong!

I can only pass raw text into the label:

Selection.Characters.Text = "100%"

the following does not work, and the label disappears:
Selection.Characters.Text = Sheets("tbl_Voids").Range("A6794").Value

is there a way of doing this?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...chart/200707/1





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com