Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 110
Default Walk over all the points in a series and extract the X value?

Hi

I am using a standard clustered column chart in Excel 2003.

I would like to be able to walk over all the points in a series and
extract the X value for inspection.

Is this possible? I cannot see how to do this.

Thanks in advance,
Chrisso
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 110
Default Walk over all the points in a series and extract the X value?

On 14 Aug, 09:13, Chrisso wrote:
Hi

I am using a standard clustered column chart in Excel 2003.

I would like to be able to walk over all the points in a series and
extract the X value for inspection.

Is this possible? I cannot see how to do this.

Thanks in advance,
Chrisso


I should have stated that I have the code to walk over the points - I
just cannot see how to extract the X value for each point:

Dim cht As Chart, ser As Series
Set cht = ActiveChart
Set ser = cht.SeriesCollection(1)
Dim pt As Point
For Each pt In ser.Points
' ## how do I get the X value for pt?
Next pt

Cheers
Chrisso
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 126
Default Walk over all the points in a series and extract the X value?

Use
Dim cht As Chart, ser As Series
Set cht = ActiveChart
Set ser = cht.SeriesCollection(1)
Dim I As Integer
For I = 1 To ser.Points.Count
Debug.Print I & ": " & ser.XValues(I)
Next I

On Fri, 14 Aug 2009 08:58:12 -0700 (PDT), Chrisso
wrote:

On 14 Aug, 09:13, Chrisso wrote:
Hi

I am using a standard clustered column chart in Excel 2003.

I would like to be able to walk over all the points in a series and
extract the X value for inspection.

Is this possible? I cannot see how to do this.

Thanks in advance,
Chrisso


I should have stated that I have the code to walk over the points - I
just cannot see how to extract the X value for each point:

Dim cht As Chart, ser As Series
Set cht = ActiveChart
Set ser = cht.SeriesCollection(1)
Dim pt As Point
For Each pt In ser.Points
' ## how do I get the X value for pt?
Next pt

Cheers
Chrisso

Regards,

Tushar Mehta
Microsoft MVP Excel 2000-present
www.tushar-mehta.com
Excel and PowerPoint tutorials and add-ins
  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 110
Default Walk over all the points in a series and extract the X value?

Thanks Tushar - just what I needed.

Chris

On 14 Aug, 18:11, Tushar Mehta <ng-underscore-poster-at-tushar-hyphen-
mehta.see-oh-em wrote:
Use
* * Dim cht As Chart, ser As Series
* * Set cht = ActiveChart
* * Set ser = cht.SeriesCollection(1)
* * Dim I As Integer
* * For I = 1 To ser.Points.Count
* * * * Debug.Print I & ": " & ser.XValues(I)
* * * * Next I

On Fri, 14 Aug 2009 08:58:12 -0700 (PDT), Chrisso





wrote:
On 14 Aug, 09:13, Chrisso wrote:
Hi


I am using a standard clustered column chart in Excel 2003.


I would like to be able to walk over all the points in a series and
extract the X value for inspection.


Is this possible? I cannot see how to do this.


Thanks in advance,
Chrisso


I should have stated that I have the code to walk over the points - I
just cannot see how to extract the X value for each point:


* *Dim cht As Chart, ser As Series
* *Set cht = ActiveChart
* *Set ser = cht.SeriesCollection(1)
* *Dim pt As Point
* *For Each pt In ser.Points
* * * *' ## how do I get the X value for pt?
* *Next pt


Cheers
Chrisso


Regards,

Tushar Mehta
Microsoft MVP Excel 2000-presentwww.tushar-mehta.com
Excel and PowerPoint tutorials and add-ins- Hide quoted text -

- Show quoted text -


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
Scatter with lines between corresponding points in 2 series? [email protected] Charts and Charting in Excel 3 March 23rd 08 01:58 PM
Custom mouse over series points Don Guillett Charts and Charting in Excel 1 March 26th 06 09:49 PM
Points in between Data Series Broken man Charts and Charting in Excel 2 November 22nd 05 10:18 PM
referencing lines and series points medicenpringles Charts and Charting in Excel 1 July 29th 05 12:00 AM
Plot points with same x-value in same series? smKing Charts and Charting in Excel 1 February 3rd 05 07:32 PM


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