I'm trying to add series into a chart with for loop, getting data from a sheet.
(Variable Counter is the counter of the for loop.)
Set Range1 = ThisWorkbook.Sheets("Risiken & Chancen").Range(Cells(Counter, 3), Cells(Counter, 6))
Set Range2 = ThisWorkbook.Sheets("Risiken & Chancen").Range(Cells(Counter, 2), Cells(Counter, 5))
With Sheets("Risikomatrix-Soll-Ist").SeriesCollection.NewSeries
.Name = "Risiko #" & Counter
.XValues = Range1
.Values = Range2
.Format.Line.DashStyle = msoLineSolid
End With
Using Range(Cells(etc.) , Cells(etc.)) I would like to select two different cells(for example A4;B7), not an area. This code above selects the all cells between the given range.