In libre-office I need to load a lot of data from one file into another file. To load the cell content, I use to code below:
=DDE("soffice";"file://path-to-my-file/my-file.xlsx";"mysheet.A2")
Problem: I need to load a lot of cells, and I can not write every single DDE command by hand (or copy-paste it)
The cell numbers from which I need to copy follow a simple rule, they are increments of ten. An example of the code I would need for my cells is given below with the cell numbers in <brackets>.
cell1: =DDE("soffice";"file://path-to-my-file/my-file.xlsx";"mysheet.A<X>")
cell2: =DDE("soffice";"file://path-to-my-file/my-file.xlsx";"mysheet.A<X+10>")
cell3: =DDE("soffice";"file://path-to-my-file/my-file.xlsx";"mysheet.A<X+20>")
I thought if I just write 3 lines of the cells and then copy the cells by dragging them down, this number would increase automatically by the appropriate amount. But this does not work, it just copies the three entries over and over again.
Is there a simple way to 'code' this, such that I do not have to write/copy all cells manually?