Thank you so much.
and now the auxiliary question.
I get the columns from a dataplot, as in
DataPlot dp = gly.DataPlots(0);
XYRange xy;
Column colX, colY;
dp.GetDataRange(xy);
xy.GetXColumn(colX);
xy.GetYColumn(colY);
I already got the row index I'm looking for with dp.XIndex() but can't find how can I get the col index of colX and colY, so I can pass them into the GetCell() function.
These are basic questions but quite hard to find in help :-/