https://bugs.documentfoundation.org/show_bug.cgi?id=169930

--- Comment #13 from JF <[email protected]> ---
@ADV

I have created this CopyInsert extension:
https://extensions.libreoffice.org/en/extensions/show/99725

In version 1.2.0, I have added a "Copy sheets and Insert function" to copy
several sheets as a “group”, meaning the cells references within the sheets
being copied follow the normal Calc paste rules. Specifically:

1) An absolute reference such as $Sheet3.A1 is never changed. If a reference
must stay on a given sheet, add the “$” to the sheet name in the formula.
2) When the source sheets contain formulas with relative sheet reference
pointing inside the group being copied, the copied cells formulas will point to
the copied sheet.
3) A formula with a relative sheet reference pointing to a sheet outside the
group of sheets being copied, the formulas stay relative and can give #REF! or
land on another sheet.
4) “Names ranges or expressions” with sheet-scoped are copied along with the
new sheet. In the case where the scope is one sheet instead of the whole
document, the copy gets its own “Name” that points to the new Sheet, not to the
original sheet.
5) “Names ranges or expressions” with document-wide scope are shared by the
source and the copy, so they behave as before.

I still believe that the LibreOffice built-in "Move or Copy Sheet ..." function
should be changed to follow the normal Calc paste rules when multiple sheets
are selected. For now, if my change request is not accepted, this extension
gives users the choice to use either method for copying multiple sheets, but
only if the copy is done within a single ODS file.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to