Can someone please help me fix my formula, Im trying to make it dynamic by using two variables "loanNumber" and "Name". All the other parts are named Cells / ranges.
Cells(Rows.Count, 6).End(xlUp).Offset(1, 0).Select
ActiveCell.Formula = _
"=INDEX(Loan_inv_sec,MATCH(loanNumber,Loan_num,0),MATCH(Name,loan_inv_titles,0))"
Range("AN9").Select
Cells(Rows.Count, 6).End(xlUp).Offset(1, 0).Select
ActiveCell.Formula = _
"=INDEX(Loan_inv_sec,MATCH(loanNumber,Loan_num,0),MATCH(Name,loan_inv_titles,0))"
Range("AN9").Select