I am using the below vb.net code in UiPath ‘Invoke Code’ activity to copy and paste only the values of excel cells from one workbook to another workbook.
Just i had to change 1 line of code from
xlWorkSheet1.Range(SourceCellValue).Copy(xlWorkSheet2.Range(SourceCellValue)).PasteSpecial(XlPasteType.xlPasteValues, XlPasteSpecialOperation.xlPasteSpecialOperationNone, False, False)