Hi,
I'm trying to develop a Index/Match function in VBA with multiple criteria (using the "&" as in an excel function) - but it doesn't work.
Does anybody know what I'm doing wrong?
Function prove(X As Range, Y As Range, Z As Range)
A = Application.WorksheetFunction.Index(X, Application.WorksheetFunction.Match("Pre-SS" & "PS", Y & Z, 0), 1)
prove = A
End Function
Thanks in advance!
Sonny
I'm trying to develop a Index/Match function in VBA with multiple criteria (using the "&" as in an excel function) - but it doesn't work.
Does anybody know what I'm doing wrong?
Function prove(X As Range, Y As Range, Z As Range)
A = Application.WorksheetFunction.Index(X, Application.WorksheetFunction.Match("Pre-SS" & "PS", Y & Z, 0), 1)
prove = A
End Function
Thanks in advance!
Sonny