I have a sheet with some tabs, which in the first one there is the following table:

In the second tab I type the "cliente" and "tipo" fields, and I'd like to get the ID as return.
I'm using the following code:
tipo = ActiveCell.Offset(0, -1).Value
cliente = Range("D5").Value
ActiveCell.Offset(0, -2) = WorksheetFunction.Index(Sheets("Tab 1").[Table1[ID]], WorksheetFunction.Match(cliente & tipo, Sheets("Tab 1").[Table1[CLIENTE]] & Sheets("Tab 1").[Table1[TIPO]], 0))
I don't know exactly what's wrong, but I've tried with a lots of ways, including some examples spliting the code and using Evaluate function as well. But, nothing happens.
How could I do it?




