Hi All,
As you can tell I am pretty new to this VBA stuff but am trying to learn.
I wrote a bit of code, which I think could be vastly improved on,
Code:For j = 5 To LastCol - 1
For i = 2 To LastRow - 1
Cells(i, LastCol + j - 1).Value = _
"=IF(IF(ISERROR(MATCH(" & Cells(i, LastCol + 1).Address & _
"," & Cells(i, j).Address & ":" & Cells(i, j).Address & ",0)),0,1),1, )"
If Cells(i, LastCol + j - 1).Value = 0 And _
IsNumeric(Cells(i, LastCol + j - 1).Value) Then
Cells(i, LastCol + j - 1).ClearContents
End If
Next i
Next j
I could not figure out how to do this will a formulaR1C1 style. Could you please give me the correct syntax and a bit of an explaination so I can
understand it.
Thank you very much,
Mick