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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sebastian36 reputationPosted Oct 2, 2011, 5:06 AM EDT
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.
Majid KamaliRank #6,453 · 266 reputationPosted Oct 2, 2011, 11:36 PM EDT
(MyChart.SeriesCollection(1) as Excel.Series).XValues = "={A, B, C}" ;