Super User Asked on November 7, 2021
I have a formula in Libreoffice Calc which I would like to move (Cut and Paste) to a different cell. I would like the formula to exactly stay the same without the cells in it being adjusted by the move. I cannot use static reference (using the $ sign) since on a different occasion I need the dynamic reference behaviour.
The only solution I have found so far, is manually copying and pasting the text of the formula instead of the cell itself. But this only works for a single cell and not for multiple ones.
Easier, easier: I tested Daniel Möller answer, but it failed (in MacOS at least), although it opened me the way to find the solution: Cut and paste, and then paste the original as well. That fixed it, no need for macros or complex stuff.
Answered by xCovelus on November 7, 2021
Trick:
Since "cut-paste" works, but not "copy-paste", you can cut-paste and use the undo not to erase the old values.
Answered by Daniel Möller on November 7, 2021
This also annoyed me a lot so I found a workaround solution for this:
First create a Macro which simulates a cut by first copying and then clearing the cell:
Tools
-> Macros
-> Edit Macros
-> Add the following to a module (e.g. Module1
)
REM ***** BASIC *****
sub CutAndPaste
dim document as object
dim dispatcher as object
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array())
dispatcher.executeDispatch(document, ".uno:ClearContents", "", 0, Array())
end sub
Then assign the macro to Ctrl + X
Tools
-> Customize
-> search and select Ctrl+X
in Shortcut Keys
-> select LibreOffice Macros / My Macros / Standard / Module1
in Category
-> select CutAndPaste
in Functions -> press Modify
on the right upper side to assign the macro to the shortcut.
You can now Ctrl + X, Ctrl + V to cut and paste without changing the references of other cells poiting to the cut cell.
Answered by das Keks on November 7, 2021
when I have done a CUT & paste in Excel in the past, it transfers as is. The copy/paste will change cell references. I have not used LibreOffice.
Answered by ruggb on November 7, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP