I am having problems...my code keeps erroring out. what am I doing wrong? Is the formula relative or do I have some areas to a absolute range that doesnt need? Please help
Sub addFormula()
Dim cell As Range
Range("AQ65536").End(xlUp).Select
Range(Selection, Selection.End(xlUp)).Offset(1, 1).Select
For Each cell In Selection
ActiveCell.Formular1c1 = "=IF(OR(K6>Impacts!$B$29,K6=Impacts!$B$29),IF(ISERROR(VLOOKUP _
(Mdata!A6,Subset!$A$339:$A$65536,1,FALSE)),"No","Yes"),"No")"
Next cell
End Sub
Sub addFormula()
Dim cell As Range
Range("AQ65536").End(xlUp).Select
Range(Selection, Selection.End(xlUp)).Offset(1, 1).Select
For Each cell In Selection
ActiveCell.Formular1c1 = "=IF(OR(K6>Impacts!$B$29,K6=Impacts!$B$29),IF(ISERROR(VLOOKUP _
(Mdata!A6,Subset!$A$339:$A$65536,1,FALSE)),"No","Yes"),"No")"
Next cell
End Sub