1
我使用的Microsoft.Office.Interop.Excel,並生成一個excel數據 如何在excel圖表中分組excel範圍?
如何修改我的代碼來實現這一目標?
當前代碼
Dim chartDeliveryDetailDateRd As Excel.Chart
Dim xlChartsDd As Excel.ChartObjects
Dim myChartDdRd As Excel.ChartObject
Dim chartRangeDdRd As Excel.Range
xlChartsDd = xlWorkSheet3.ChartObjects
myChartDdRd = xlChartsDd.Add(50, 100, 500, 250)
chartDeliveryDetailDateRd = myChartDdRd.Chart
chartRangeDdRd = xlWorkSheet3.Range("a1", "i4")
chartDeliveryDetailDateRd.SetSourceData(Source:=chartRangeDdRd)
chartDeliveryDetailDateRd.ChartType = Excel.XlChartType.xlColumnClustered