调整工作表上的图表大小

时间:2020-05-04 06:51:44

标签: excel vba excel-charts

所以我的问题很容易描述,但是我在这里找不到答案。

所以我创建了一个图表工作表(想知道我的意思),所以我没有在工作表上创建图表,而在工作表上创建了字符。

我现在遇到的问题是我无法更改其大小,但是我有太多的值,无法读取该图表上的任何内容。我需要图表作为工作表,因为我需要图表的事件,这些事件仅在您像工作表一样具有。

我希望有人能帮助我。

Charts.Add2
Chart.Name= "Grafik"
Chart.SeriesCollection.NewSeries
Chart.SeriesCollection(1).Values = arrAnz
Chart.Axes(xlCategory).CategoryNames = arrTxt
Chart.ChartType = xlBarClustered
Chart.ChartTitle.Text = "Häufigkeit der Fehler"
Chart.ApplyDataLabels xlDataLabelsShowValue
Chart.Activate


'those wont work
Chart.Parent.Height
Chart.ChartArea.Height 'runtime error Form is locked and size cannot be changed

0 个答案:

没有答案