Hi,
By using VB6 code, I have data populated to Excel (2000 version) worksheet and then generate a chart as follow:
Set chDistance = objSheetDistance.ChartObjects.Add(30, 95, 630, 315)
With chDistance.Chart
.ChartType = xlXYScatterSmoothNoMarkers
.DisplayBlanksAs = xlInterpolated
.SeriesCollection.NewSeries
<data here>
.SeriesCollection(i).Name = "Test " & i
End With
All of them are having error: -2147417851
Method '~' of object '~' failed.
I never had the same problem on the other machine with Office XP. Not sure if it is the problem of Office 2000, or only on 1 single machine since I do not have other machines with 2000 to test.
Any idea or help, please?
By using VB6 code, I have data populated to Excel (2000 version) worksheet and then generate a chart as follow:
Set chDistance = objSheetDistance.ChartObjects.Add(30, 95, 630, 315)
With chDistance.Chart
.ChartType = xlXYScatterSmoothNoMarkers
.DisplayBlanksAs = xlInterpolated
.SeriesCollection.NewSeries
<data here>
.SeriesCollection(i).Name = "Test " & i
End With
All of them are having error: -2147417851
Method '~' of object '~' failed.
I never had the same problem on the other machine with Office XP. Not sure if it is the problem of Office 2000, or only on 1 single machine since I do not have other machines with 2000 to test.
Any idea or help, please?