That is what I cannot achieve by recording a macro and using ctrl shift v or ctrl v.
Would be great if someone posts the code.
It must fit in my macro which is attached to the spreadsheet-file. And run on libreoffice without having people installed special addons, packages or need to change any settings or options.
I found https://www.youtube.com/watch?v=E_QZymK7F5U and https://extensions.libreoffice.org/extensions/mri-uno-object-inspection-tool but wonder if this works for my purposes? And if it is secure?