Can I create an excel chart, without Range object as data?
I mean I want to use program data as chart values in both x and y series and I don't want to add data to excel range.
Please explain.
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Majid KamaliPosted Oct 3, 2011, 3:36 AM
(MyChart.SeriesCollection(1) as Excel.Series).XValues = "={A, B, C}" ;
SebastianPosted Oct 2, 2011, 9:06 AM
this is a wellknow 'problem' in excel. its not possible to use a chart without a datasource range.
what i do most of the time is create an invisible range in a nonvsible area(row 50000-51000 for example)
and hide the rows additionaly. no other way possible :( sorry.