I created a VBA version of this successful formula:
The script that I produced based on that is:
However, that produces, as indicated in the title, a Runtime 424 error, "Object Required". This is my first attempt at creating a formula via VBA, and with that error and some of the stuff I've found online looking for an answer, I'm feeling a bit over my head.
Can anyone offer a suggestion as to what I'm overlooking here?
Thanks
Code:
=INDEX([DATA.xlsm]FIRMS!$K:$K,MATCH(Home!L19,[DATA.xlsm]FIRMS!$A:$A,0),1)
The script that I produced based on that is:
Code:
RecipientStr = Application.WorksheetFunction.Index(Workbooks(Data.xlsm).Sheets("FIRMS").Range("K:K"), Application.WorksheetFunction.Match(ThisWorkbook.Sheets("Home").Range("L19").Value, Workbooks(Data.xlsm).Sheets("FIRMS").Range("A:A"), 0), 1)
However, that produces, as indicated in the title, a Runtime 424 error, "Object Required". This is my first attempt at creating a formula via VBA, and with that error and some of the stuff I've found online looking for an answer, I'm feeling a bit over my head.
Can anyone offer a suggestion as to what I'm overlooking here?
Thanks