I have two columns with data. One column for Y-axis, another for X-axis. How can I create a chart using this data? Range is different (from 10 cells to 3000).
Thanks a lot!
I have two columns with data. One column for Y-axis, another for X-axis. How can I create a chart using this data? Range is different (from 10 cells to 3000).
Thanks a lot!
For X and Y axis you have different property .values and .xvalues see more here https://msdn.microsoft.com/en-us/library/office/ff197014.aspx and https://msdn.microsoft.com/en-us/library/office/ff821866.aspx. There is nothing more to tell, but if you dont understand something try to ask.
numbShag. I tried to use mainChart.SeriesCollection(1).Values = Worksheets(1).Range("F1:F" & numbShag) but I have an 1004 error.mainChart.SeriesCollection.NewSeries