Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have 39 charts in a workbook, where data value changes
cause movement of the lines on the charts. I use text boxes to identify some of the data lines on the charts. But as data values change, the text boxes stay in place while the lines move - requiring manual repositioning of the text box. This is out of control. How can I attach text to a data line (coding?) such that it moves with the line? Thanks, Phil |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Phil,
Attach data labels to your chart points. If you want to use any text, it is quite tricky to do this manually. Using code you can do something like the following: Set seSales = ActiveSheet.ChartObjects(1).Chart.SeriesCollection (1) seSales.HasDataLabels = True seSales.Points(2).DataLabel.Text = "Oranges" -- John Green - Excel MVP Sydney Australia "Phil Hageman" wrote in message ... I have 39 charts in a workbook, where data value changes cause movement of the lines on the charts. I use text boxes to identify some of the data lines on the charts. But as data values change, the text boxes stay in place while the lines move - requiring manual repositioning of the text box. This is out of control. How can I attach text to a data line (coding?) such that it moves with the line? Thanks, Phil |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John, Thanks for your response. I want to leave data
labels alone - they show a plotted value, say 100, 200, etc. I would like to somehow attach text to the line that says "Oranges". Another line could represent "Apples" etc. Phil -----Original Message----- Phil, Attach data labels to your chart points. If you want to use any text, it is quite tricky to do this manually. Using code you can do something like the following: Set seSales = ActiveSheet.ChartObjects (1).Chart.SeriesCollection(1) seSales.HasDataLabels = True seSales.Points(2).DataLabel.Text = "Oranges" -- John Green - Excel MVP Sydney Australia "Phil Hageman" wrote in message ... I have 39 charts in a workbook, where data value changes cause movement of the lines on the charts. I use text boxes to identify some of the data lines on the charts. But as data values change, the text boxes stay in place while the lines move - requiring manual repositioning of the text box. This is out of control. How can I attach text to a data line (coding?) such that it moves with the line? Thanks, Phil . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, John
-----Original Message----- That's exactly what my code does. -- John Green - Excel MVP Sydney Australia "Phil Hageman" wrote in message ... John, Thanks for your response. I want to leave data labels alone - they show a plotted value, say 100, 200, etc. I would like to somehow attach text to the line that says "Oranges". Another line could represent "Apples" etc. Phil -----Original Message----- Phil, Attach data labels to your chart points. If you want to use any text, it is quite tricky to do this manually. Using code you can do something like the following: Set seSales = ActiveSheet.ChartObjects (1).Chart.SeriesCollection(1) seSales.HasDataLabels = True seSales.Points(2).DataLabel.Text = "Oranges" -- John Green - Excel MVP Sydney Australia "Phil Hageman" wrote in message ... I have 39 charts in a workbook, where data value changes cause movement of the lines on the charts. I use text boxes to identify some of the data lines on the charts. But as data values change, the text boxes stay in place while the lines move - requiring manual repositioning of the text box. This is out of control. How can I attach text to a data line (coding?) such that it moves with the line? Thanks, Phil . . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA code to chaneg axis text on a chart? | Charts and Charting in Excel | |||
In Excel 2007 chart with multiple lines, mouse doesn't track lines | Charts and Charting in Excel | |||
Looking for code to separate one line of text into multiple lines in Excel | Excel Worksheet Functions | |||
Vertical Lines on the Lines on 2 Axes Chart | Charts and Charting in Excel | |||
Pie chart with 'anchored' lines to text box | Charts and Charting in Excel |