in reply to Excel copy data from one cell to another cell

Use Win32::OLE , see Using Win32::OLE and Excel - Tips and Tricks.

poj
  • Comment on Re: Excel copy data from one cell to another cell

Replies are listed 'Best First'.
Re^2: Excel copy data from one cell to another cell
by davies (Monsignor) on Jun 06, 2019 at 14:22 UTC

      Example for copying a single cell with Win32::OLE

      $Sheet->Range("B4")->{Value} = $Sheet->Range("A1")->{Value};
      with $Sheet being an Excel-worksheet

      HTH, Rata

        Yes, if the value is what is wanted. If it's the formula or (parts of) the format, the command will be different. For myself, I copy formulae far more often than values, but we don't know what the OP wants.

        Regards,

        John Davies

      John, thank you for your reply.. it's my mistake I haven't mentioned where I am working.. I am trying to generate the excle file from Linux OS machine.