Worksheets("sheet1").ChartObjects("chart 1").Chart.SetSourceData Source:=Sheets("sheet1").Range(Cells(1, 1), Cells(30, 3)), PlotBy:=xlColumns
Worksheets("sheet1").ChartObjects("chart 1").Chart.ChartType = xlXYScatterLinesNoMarkers
Worksheets("sheet1").ChartObjects("chart 1").Chart.SeriesCollection(1).Name = "Ying"
Worksheets("sheet1").ChartObjects("chart 1").Chart.SeriesCollection(1).XValues = Sheets("sheet1").Range(Cells(1, 1), Cells(30, 1))
Worksheets("sheet1").ChartObjects("chart 1").Chart.SeriesCollection(1).Values = Sheets("sheet1").Range(Cells(1, 2), Cells(30, 2))
Worksheets("sheet1").ChartObjects("chart 1").Chart.SeriesCollection(2).XValues = Sheets("sheet1").Range(Cells(1, 3), Cells(30, 3))
Worksheets("sheet1").ChartObjects("chart 1").Chart.SeriesCollection(2).Values = Sheets("sheet1").Range(Cells(1, 4), Cells(30, 4))
Worksheets("sheet1").ChartObjects("chart 1").Chart.SeriesCollection(2).Name = "Yang"