Hi,
I am trying to figure out how to copy a cell from one sheet to another sheet using a macro. The cells contains formatted text and an image anchored to the cell. I am able to copy the cell values and formats using the code below. But it does not copy the image. Any help would be greatly appreciated.
oSheets = ThisComponent.getSheets()
CopyFromSheet = oSheets.getByName("Sheet1")
CopyToSheet = oSheets.getByName("Sheet2")
source = CopyFromSheet.getCellrangeByName("C9").getRangeAddress()
destination = CopyToSheet.getcellbyposition(8,5).getCellAddress()
CopyFromSheet.copyRange( destination , source )
LO 6.2.7 on Win10