Hi people,
i'm trying do do a vlookup in vba with two differente files, but i get error:
run-time error '1004':
Unable to get the vlookup property of the worksheetfunction class
code:
can anyone help me, please?
Thank you, regards
i'm trying do do a vlookup in vba with two differente files, but i get error:
run-time error '1004':
Unable to get the vlookup property of the worksheetfunction class
code:
VBA Code:
Dim x As Integer
Dim procura As String
For x = 6 To 200
WB.Sheets("Ausências Previstas").Range("E" & x) = Application.WorksheetFunction.VLookup(WB.Sheets("Ausências Previstas").Range("B" & x), Presencas.Sheets("1").Range("B27:BF200"), 50, False)
Next
can anyone help me, please?
Thank you, regards