Reading a single value from a series

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

Hi,

In an Excel VBA subroutine, I need to read a single value at a time
from a data series and perform different actions depending on whether
this value is a number or the string "#N/A". I tried the following:

If ActiveChart.SeriesCollection(s).Values(t) <> "#N/A" Then
(do whatever)

but it doesn't work (it says "wrong number of arguments or invalid
property assignment"). I'm not an Excel expert, so I don't know
exactly how this works, and the MSDN documentation is of little help
in this case. Also, how do I differentiate between the x-values and
y-values of the series? The data is for an X-Y scatter plot, and I
want to compare the y-values only (I don't care about the x-values).

Many thanks!
-Nick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top