Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XL: Is this a variable type conversion error?

Status
Not open for further replies.

mintjulep

Technical User
Aug 20, 2004
1,551
JP
I have an XY chart. X values are in column A, with a column name in A1.

Cell A101 = 10

Since the array returned by activechart.seriescollection(index).xvalues
is 1 based, item 100 of the array for any of the series in the chart should (it seems to me) return the value of 10.

However, in the immediate window:

Code:
c = activechart.SeriesCollection (1).xvalues
? c(100)
 9.99999999999998

Same for any series, same value returned if referenced in code.

Can anyone tell me why this is, and more importantly, how to fix it?
 




Hi,


Is this a problem?

Is the value in A101 the result of a formula or did you actually enter the characters, one and zero?

Skip,

[glasses] [red][/red]
[tongue]
 
Duh!

Thank you.

In my defense, please note that it was past my normal bed time.[sleeping2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top