Excel 워크 북에 새 차트를 만들고 플롯 영역의 치수를 다시 지정하려고했지만 코드가 작동하지 않는 것 같습니다. 어떤 도움이 필요합니까?Excel에서 차트의 플롯 영역을 어떻게 변경합니까?
GlobVars.Wksht = GlobVars.Wkbk.Sheets(1) 'sets current working sheet as first sheet in wkbook
GlobVars.xlCharts = GlobVars.Wksht.ChartObjects
GlobVars.myChart = GlobVars.xlCharts.Add(30, 30, 800, 400) 'changes the starting location and height and width
GlobVars.chartPage = GlobVars.myChart.Chart
GlobVars.chartPage = GlobVars.myChart.Chart
GlobVars.chartPage.ChartType = Excel.XlChartType.xlXYScatter 'changes chart type
GlobVars.chartPage.PlotArea.Width = 600
GlobVars.chartPage.PlotArea.Height = 300
마지막 두 줄은 내가 작업하려고하는 줄입니다. 어떤 도움이라도 대단히 감사합니다.
당신이 무엇을 실행할 발생하면? 오류가 있습니까? –
'AutoLayout'과'uniformaxis'를'false'로 설정 했습니까 ?? –