ich möchte ein Makro im Blatt Bestand erstellen, um mein
Diagramm im Chart Auswertung um eine Spalte zu erweitern. (Diese Spalte ist im Blatt Bestand).
Folgendes habe ich schon, aber es funktioniert nicht....
Sub Schaltfläche457_Klicken()
LastS = Worksheets("Bestand").Cells(12, 256).End(xlToLeft).Column
Sheets("Auswertung").Select
ActiveChart.ChartArea.Select
ActiveChart.SeriesCollection(1).XValues = Range(Cells(11, 15), Cells(11, LastS))
ActiveChart.SeriesCollection(1).Values = Range(Cells(231, 15), Cells(231, LastS))
ActiveChart.SeriesCollection(2).Values = Range(Cells(232, 15), Cells(232, LastS))
ActiveChart.SeriesCollection(3).Values = Range(Cells(233, 15), Cells(233, LastS))
ActiveChart.SeriesCollection(4).Values = Range(Cells(234, 15), Cells(234, LastS))
End Sub
Muss nicht vor das Range noch ein Verweis, dass die Daten aus dem Bestand kommen?Hoffe mir kann jemand helfen.
VG Tom