Can any one help me on the below code.
I'm trying to find if a cell contains any of the text that are in the given Cell range. And then return the text that is found. And its working fine if i give cell range like B4:B6 but i want it to be dynamic till the last row in B column.
Formula Used in the cell
IFERROR(LOOKUP(1,0/COUNTIF($H2,"*"&Requirement!$B$2:$B$4&"*"),Requirement!$B$2:$B$4),"No Data")
VBA Scrpit
ActiveCell.FormulaR1C1=_"=IFERROR(LOOKUP(1,0/COUNTIF(RC8,""*""&Requirement!R2C2:R4C2&""*""),Requirement!R2C2:R4C2),""No Data"")"
Here instead of Requirement!$B$2:$B$4, i want it to be till the last row.