Trying to use MATCH vba excel -
i'm trying value on colum , value on row.
i did , works:
linha = application.worksheetfunction.match(nome, sheets(2).range("a:a"), 0) but if this, don't work. supose same code (error 1004)
x = sheets(2).cells(rows.count, 1).end(xlup).row linha2 = application.worksheetfunction.match(nome, sheets(2).range(cells(1, 1), cells(x, 1)), 0)
that doesn't work because if qualify range object sheet reference, need qualify cells sheet reference.
try this...
linha2 = application.worksheetfunction.match(nome, sheets(2).range(sheets(2).cells(1, 1), sheets(2).cells(x, 1)), 0)
Comments
Post a Comment