I would like to convert all formulas in a worksheet to values. The code below works for one specific range, but I need to cycle through all the ranges in the worksheet to convert the formulas to values.
Dim c As Range
For Each c In ThisWorkbook.Worksheets("Sheet 1").Range("B5")
If c.HasFormula Then
c = c.Value
End If
Next c
How do I cycle through all the ranges in the worksheet?
Excel version=2000
Thanks.
Dim c As Range
For Each c In ThisWorkbook.Worksheets("Sheet 1").Range("B5")
If c.HasFormula Then
c = c.Value
End If
Next c
How do I cycle through all the ranges in the worksheet?
Excel version=2000
Thanks.