R1C1 reference style with LibreOffice

Hi, I have to convert a macro from Excel to LibreOffice. The Excel macro
contains many formulas in R1C1 reference style.

How can I rewrite the formulas in R1C1 reference style with LibreOffice? Is
it possible?

Thanks
pacopyc

Yes: menu Tools > Options > LibreOffice Calc > Formula > choose in the
Formula syntax dropdown list

Best regards.
JBF

Ok, but the problem is that I must do it from LibreOffice basic code.

pacopyc

Ok, but the problem is that I must do it from LibreOffice basic code.

If you would spend more than an hour or two with this matter, you would
not have to wait days for the answer.

You can select it for the spreadsheet in:

Menu/Tools/Options/LibreOffice calc/Formula - Formula Options - Formula
syntax

Miguel Ángel.

Excuse me, I don't understand. Can I rewrite the formulas in R1C1 reference
style with LibreOffice basic code? How?

If it's only a matter of rewriting R1C1 in A1 notations, a simple function
could read the Rx and put the appropriate letter, then remove the C.
If you want to reference cells from the basic code, functions alreay exist
to get cells from their numeric coordinates, as said by others.
I think this cover most cases; also know that you can use the INDIRECT()
function directly in a cell with the R1C1 notation.

No, you can't. But since you are a programmer, this should be no problem
at all.
Instead of "R"& row &"C"& col you can simply use method
objSheet.getCellByPosition(c -1, r -1). The row/col indices are zero based.
Or write your own function to evaluate R1C1 addresses. Where is the
problem? You can't really program? Then stick with MS Excel.