OLE, Excel, LotusScript and Seriescollection(1).Xvalues

Hi,

now i have more info about my problem:

I want to generate a graph in Excel from Lotus.

The data is there and i use

someChart.Setsourcedata someExcelSheet.Range(someArea)

to set the data. Now i want to set the Label description via

someChart.Seriescollection(1).XValues = someExcelSheet.Range(someRange)

I could .value after the range, but this works only for a short list (about 10 entries) and then it is also not linked to the sheet but hardcoded.

Thanks in advance,

Markus

Subject: Possible Workaround: OLE, Excel, LotusScript and Seriescollection(1).Xvalues

I used the following workaround:

i added a macro ‘SetChart’ to the excel with the following working vb code:

ActiveChart.SeriesCollection(1).XValues = “=Kurse!R4C1:R33C1”

ActiveChart.SeriesCollection(1).Values = “=Kurse!R4C3:R33C3”

Of course the row and column value are not hardcoded.

And in Lotus Script i call the makro via

excel.Run(“test.xls!SetChart”) after i set the row and column values.