D
DG
Why does this not work:
Sub TEST()
Dim TESTVAR As Integer
Sheets("DataQuery").Select
TESTVAR = Application.WorksheetFunction.VLookup("COBRA", "A120", 4)
End Sub
I get a Run-time error '1004'
Unable to get the VLookup property of the WorksheetFunction class
Data looks something like this:
Supplier Item Qty Cost
AEARO AEA 123 5 2.50
COBRA COB 123 8 4.50
etc...
DG
Sub TEST()
Dim TESTVAR As Integer
Sheets("DataQuery").Select
TESTVAR = Application.WorksheetFunction.VLookup("COBRA", "A120", 4)
End Sub
I get a Run-time error '1004'
Unable to get the VLookup property of the WorksheetFunction class
Data looks something like this:
Supplier Item Qty Cost
AEARO AEA 123 5 2.50
COBRA COB 123 8 4.50
etc...
DG