I'm looking to create a macro that will copy/paste special values (remove formulas) in a table row based on the value in column A of that row being set to "Complete". I'm open to it being a button or automatic but I can't get that far... I tried using the code at this thread Macro to hardcode a row based on formula output but I am getting a Compile error: Argument not optional error.
Sub CopyPasteCompleted()
Dim Cl As Range, Rng As Range
On Error Resume Next
Set Rng = Range("A:A").SpecialCells(xlFormulas)
On Error GoTo 0
If Rng Is Nothing Then Exit Sub
For Each Cl In Range
If Cl.Value = "Complete" Then
Cl.EntireRow.Value = Cl.EntireRow.Value
End If
Next Cl
End Sub