I am working on a macro that changes a specific row of formulas to their resultant values.
This macro should only work on a row if the value in column A matches the value in cell A1 on another worksheet(GRAND TOTALS). That works perfectly, however the "formula to value" task of my macro does not. I believe I am calling the desired row incorrectly. My code:
Sub FormulaToValue()
response = Sheets("GRAND TOTALS").Range("A1")
lastRow = Sheets("Mem History").Columns(1).Find(What:=response).Row
'MsgBox (lastRow)
Sheets("Mem History").Activate
Set Cell_Range = Rows(lastRow)
For i = 1 To Cell_Range.Cells.Count
Cell_Range.Cells(i) = Cell_Range.Cells(i).Value
Next i
End Sub