我有一个复杂的公式计算单元格的值,它为我计算值。
我想从单元格中删除公式并希望保留计算值。
我有:
Dim range As Excel.Range = getRange()
For Each cell in range
' What should do to retain the value and get rid of the formula in the cell.
Next cell
答案 0 :(得分:3)
怎么样:
For Each cell in range
cell.Value = cell.Value
Next cell
答案 1 :(得分:0)
如果VBA没有付清,请尝试