所以基本上我需要能够选择最后一行创建使用此方法的图表。
Sub createchart2()
lastA = Range("A1").End(xlDown).Row
ActiveSheet.Shapes.AddChart.Select
ActiveChart.ChartType = xlLine
ActiveChart.SetSourceData Source:=Range("Main!$A$3:$A$10")
End Sub
我需要的范围A10
能够在A列中选择最后一排。