On the code below, I try to put the value of Correspondance1 into the Match formula but it doesn't work.
Do you have an idea why it doesn't work?
Do you have an idea why it doesn't work?
Code:
Name1 = Sheets("SLA").Cells(Step1_Row, Step1_Clm).Value
Correspondance1 = Application.WorksheetFunction.VLookup(Name1, Sheets("Correspondance").Range("A2:B172"), 2, False)
cl.FormulaArray = _
"=IF(ISNA(INDEX(Log_WK!C[-5],MATCH(SLA!RC[-4],,0))),"""",INDEX(Log_WK!C[-5],MATCH(SLA!RC[-4],IF(" & Correspondance1 & "=Log_WK!C[-3],Log_WK!C[-2]),0)))"