I've got this chunk of code that works when I enter it inside of cell
=MATCH(1;INDEX(($B:$B="Some_value1")*($D:$D="Some_value2");0);0)
When I "translate" it to VBA code I get typemismatch error.
Debug.Print Application.WorksheetFunction.Match(1, Application.WorksheetFunction.Index((Range("B:B") = "Some_value1") * (Range("D:D") = "Some_value2"), 0), 0)
So can anyone point me where my mistake is or am I even doing it right?
Thanks in advance