Posted 25 February 2019, 4:57 am EST
Hello,
I am getting “Incorrect array dimensions” error using CopyXVectorIn and CopyYVectorIn in Chart2d.
Following is the abbreviated version of the code:
Dim r
Dim i As Integer
r = 10
Dim Lx(r)
For i = 0 To UBound(Lx) - 1 Lx(i) = i Next With Chart .Border.Type = C1Chart2D8.BorderTypeConstants.oc2dBorderFrameIn With .ChartArea With .Axes("X") .Min.Value = -5 .Max.Value = Lx(9) .Title.Text = "X Axes" .Origin.Value = 0 End With With .Markers("Y") .Method = C1Chart2D8.MarkerMethodConstants.oc2dMarkerDataIndex End With End With .Header.Text.Text = "Title" With .ChartGroups(1) With .Data .NumSeries = 1 .CopyXVectorIn(1, Lx) End With End With