1

I have a sub that that runs a simulation and creates an array with my data. I'd like to make various charts with this data to understand it, but if possible I'd like to avoid pasting the data on worksheet first, is there a way to make a chart directly from the array?

I can paste the data and work around it, but I'm hoping for a more elegant solution

1 Answer 1

1

Documentation gives you the answer.

Charts("Chart1").SeriesCollection(1).Values = Array(1, 3, 5, 7, 11, 13, 17, 19)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.