Thank you.
I decided to try the .UsedRange approach and this works as long as the spreadsheet is not "contaminated".
Nevertheless, your solution makes sense and I'm sure I'll be applying it elsewhere.
Thanks again.
I'm charting in Excel using VBA.
If I use something like:
ActiveChart.SetSourceData Source:=Worksheets("Sheet2").Range("A1:D10"), PlotBy:=xlColumns
Then it plots.
But if I use something like:
ActiveChart.SetSourceData...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.