Creating chart/graph of non-adjacent ranges?

aesta

New Member
Joined
Aug 15, 2017
Messages
6
I currently have the following code with a table from Range("Y2:AB" & iRow3), where iRow3 is the last row in the table (changes as new data is input):

With ActiveSheet.ChartObjects.Add(Left:=Range("C12").Left, _
Top:=Range("C12").Top, _
Width:=Range("C12:G24").Width, _
Height:=Range("C12:G24").Height).Chart
.ChartType = xlXYScatterLines
.SetSourceData Source:=Sheets("FT1 Data").Range("Y2:AD" & iRow3), _
PlotBy:=xlColumns
.HasLegend = False
End With

Although the table spans 4 Columns (Y, Z, AA, and AB), I would essentially like to have 3 separate charts with Y being the x-axis increments for all the charts and the latter three representing the y-values for the 3 different charts. How would I go about doing that?

Help is much appreciated! Thanks in advance!
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Up.

The project is rather urgent, so any quick help would be much appreciated! Thanks again!
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,947
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top