I would like to get current document folder path as a cell value.
I need it for proper relative reference creation used in a function call OFFSET(INDIRECT(<generated filepath#sheet.cell>))
I am out of luck with google. I found basic function ThisComponent.getURL()
that could help.
The nearest solution is via the reference to other file in the same folder with use of function FORMULA()
over that cell an then using string operations over the result.
I would expect some simple function like INFO()
but I could not find any.
Thanx
Sorting within Calc arranges the cells in a sheet using the sort criteria that you specify.
Add this
=CELL("filename")
to your cell. It's an absolute path, but you could further manipulate it with the standard text functions.
Documentation reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With