Remove single quote VBA function
问题 To simplify, I have two sheets in an Excel workbook. If I write =sheet2!R3C2 in one of the cells of sheet1, the cell takes the value of the cell R3C2 of sheet2 correctly. I would like to generalize that for many rows in VBA, so my code is: row = XX a long temp = "=sheet2!R" & row - 1 & "C2" Range("c" & row).Value = temp But when I use this code, the value of the cell(row,3) is =sheet2!'RXXC2' How can I remove the single quotes ?? 回答1: Range("C" & row).Formula = temp would produce the correct