LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Finding the Y-Value of Points

I have a somewhat complex set of bar-charts. Some (but not all) of the data
series that make up each chart have the values of the points displayed. Due
to the complex formatting of the charts, I can't just display the values
using Data Labels, so I display them in Text Boxes. I have written a macro
that automatically positions each text box just above the bar whose value it
shows, and changes the formatting of the text box based on the formatting of
whatever it happens to be positioned over.

Until now, I got the value associated with each bar from the actual cells on
the worksheet. However, a recent change to the requirements for the charts
means I am not always plotting data from a contiguous range. For example, a
data range might consist of Sheet2!(E2,E7:E10) on one chart, or Sheet
3!(E3:E9) on another chart. This makes looking up the value for each bar in
the chart-formatting macro harder.

I would like to be able to use the set of plotted values rather than reading
cells off the worksheet, but I can't figure out how to get at them. I tried
using ActiveChart.SeriesCollection(i).Points(j), but there is no Values
property associated with this object. I also tried using
ActiveChart.SeriesCollection(i).Values, but that apparently only returns the
array of plotted values -- I can't get it to return a single value.

Does anyone know how I can return the plotted y-value of a single point?

BTW - I am using Excel 2007. As a side comment, it appears to me that the
Help function in this version of VBA is seriously degraded from what it used
to be in Excel 2003!


David Benson


 
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 Format numbers from percentage points to basis points Robaroo Excel Discussion (Misc queries) 2 April 3rd 23 06:58 PM
How do I find points on a curve between known points? Cybertori Excel Worksheet Functions 1 August 30th 06 07:57 PM
finding 1st populated cell on a vector with varying starting points nickname Excel Discussion (Misc queries) 0 July 18th 06 02:15 AM
Finding height between high points Sean Excel Worksheet Functions 0 March 22nd 06 08:37 PM
10 X 10 grid and finding distances from multiple points... brya6347 Excel Programming 1 February 16th 05 09:21 PM


All times are GMT +1. The time now is 07:21 AM.

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"