Reputation: 45646
I have complex formula calculating the value of a cell and it calculates the value for me.
I want to get rid of the formula from the cell and want to retain the calculated value.
I have :
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
Upvotes: 0
Views: 1844
Reputation: 8941
If a VBA doesn't pay off, try
Upvotes: 0
Reputation: 26591
What about:
For Each cell in range
cell.Value = cell.Value
Next cell
Upvotes: 3