Die folgende Funktion erfüllt genau Deine Wünsche:
function Copy2(nr as integer, zelle as string)
sName = thisComponent.sheets(nr-1).name
copy2 =
thisComponent.sheets.getByName(sName).getCellRangeByName(zelle).formulaLocal
End function
In die Zelle käme dann der Begriff: =COPY2(1; D14)
Das heisst, der Inhalt der Zelle D14 vom Tabellenblatt 1 würde
angezeigt, also identisch zur Formel =sheetxx.D14.
Sind natürlich keine Fehlerkorrekturen drin etc. Ist ein
Prinzip-Makro. Muss in die Standardbibliothek des Dokumentes bzw. in
dei Standardbibliothek von "MeineMakros"!
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.