Hi

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Hi,

To access cells in the spreadsheet within a program, use the Cell(r,c)


function, where r=row reference and c=column reference (note this is the
opposite to A1 reference, i.e. Cell(2,1) = A2 ).

i.e.
M1(I,1):=Spreadsheet.Cell(I,1)

The Spreadsheet.Cell() function is found


in Vars>App>Spreadsheet>Numeric

EDIT:
To put the data back in the spreadsheet app, just swap the matrix and
spreadsheet references in your program:
Spreadsheet.Cell(I,1):=M1(I,1)
and adapting the row & column references for the new data.

Regards.
-Bart

I have copied some data from Excel to a spreadsheet and i want to use
them in a program. I have understood that each cell in a spreadsheet is
considered as a global variable, i.e. if i type for example "A1" in the stack,
Prime will return the value of cell A1 etc.

I tried to write a program (I am a beginner though) in order to get the values


from the spreadsheet (the first 5 cells of column A only, i.e. cells A1, A2, A3,
A4, A5) automatically and put them in a matrix (5x1), as follows:
...
M1:=MAKEMAT(0,5,1);
FOR I FROM 1 TO 5 DO
M1(I,1):=A(I);
END;

You might also like