Unable to Get VLookup Property for worksheet function class

Shantanu_4612

New Member
Joined
Oct 3, 2016
Messages
27
Hi All,

I am getting "Unable to VLookup property of the Worksheets Function Class" Erro for the below code.

Kindly assist

I am using this code in a userform

Private Sub ListBox1_Click()

Dim l As Integer
Dim f As Integer


EST.TextBox6 = EST.ListBox1

l = Len(EST.TextBox6)
f = InStr(EST.TextBox6, " *")

EST.TextBox1 = Mid(EST.TextBox6, 1, (l - (l - (InStr(EST.TextBox6, " *")))))


EST.TextBox8 = EST.TextBox5 & EST.TextBox1



EST.TextBox3 = Application.WorksheetFunction.VLookup(EST.TextBox8, Worksheets("TempRAW").Range("A1:J1000000"), 10, False)

EST.TextBox2.Text = Application.WorksheetFunction.VLookup(EST.TextBox8, Worksheets("TempRAW").Range("A1:G1000000"), 7, False)







End Sub
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Is the data in column A on the sheet 'TempRAW' numeric or text?

PS If you are trying to find the row in A that matches the value in the textbox probably better to use MATCH.
 
Upvote 0
Hi,

I checked the RAW,

Data is available for the Look up

Well, you did not post any data nor any example and so it's difficult to know exactly what's happening.

For ex. you may have the text "3" in the textbox and the RAW data has the number 3 and so you get the error.

Post a small example with some data and what you're looking for so that we can test.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,089
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top