How can Macro find first XValue in on XYScatter chart?

hill0093

Board Regular
Joined
Dec 4, 2011
Messages
163
In Excel 2003 on a particular set of data I copy
(select and control C) "=fileTable!$D$5660:$D$8496" from
Chart > Source Dara > Series > Series1 > Xvalues
but "Record New Macro" won't tell me how to get it by Macro.
I need the first XValue of Series1 in an XYScatter Chart in
a Macro I'm writing. How can my Macro get it? The Macro is
one that shows under "View Code" of the Chart.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Sorry, the Thread Title is a little messed up.
I thought that maybe there might be a code statement like
Code:
dblNum = ActiveChart.SeriesCollection(1).Points(1).XValue
that would retrieve either the first XValue of the series or
the first XValue on the Chart. But maybe VBA doesn't allow
such a retrieval.
 
Upvote 0
Code:
    Dim xv As Variant
    xv = ActiveChart.SeriesCollection(1).XValues
    Debug.Print xv(1)
 
Upvote 0

Forum statistics

Threads
1,206,817
Messages
6,075,041
Members
446,114
Latest member
FadDak

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top