Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VLookUp Function
I am get this error message:
"Unable to get the VLookup property of the WorksheetFunction class" when the code gets to the Application.WorksheetFunction line below. I sense there is something wrong but I can't put my finger on it. Any ideas? Thanks Set smlWS = Worksheets("SAP Materials List") smllastRow = smlWS.Range("B65536").End(xlUp).Row Set rngsml = smlWS.Range("B2:C" & smllastRow) Application.WorksheetFunction.VLookup(dbec.Offset( 0, 3).Value, rngsml, 2, False) & missingSAPlines |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VLookUp Function
Please try this.
Suppose you have data in A1:B2. ColA ColB 1 One 2 Two In immediate window try this Msgbox Application.WorksheetFunction.VLookup(Range("A1"), Range("A1:B2"),2,False) -- If this post helps click Yes --------------- Jacob Skaria "Ayo" wrote: I am get this error message: "Unable to get the VLookup property of the WorksheetFunction class" when the code gets to the Application.WorksheetFunction line below. I sense there is something wrong but I can't put my finger on it. Any ideas? Thanks Set smlWS = Worksheets("SAP Materials List") smllastRow = smlWS.Range("B65536").End(xlUp).Row Set rngsml = smlWS.Range("B2:C" & smllastRow) Application.WorksheetFunction.VLookup(dbec.Offset( 0, 3).Value, rngsml, 2, False) & missingSAPlines |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
VLookUp Function
Nothing happened. I don't understand how this is supposed to help me?
"Jacob Skaria" wrote: Please try this. Suppose you have data in A1:B2. ColA ColB 1 One 2 Two In immediate window try this Msgbox Application.WorksheetFunction.VLookup(Range("A1"), Range("A1:B2"),2,False) -- If this post helps click Yes --------------- Jacob Skaria "Ayo" wrote: I am get this error message: "Unable to get the VLookup property of the WorksheetFunction class" when the code gets to the Application.WorksheetFunction line below. I sense there is something wrong but I can't put my finger on it. Any ideas? Thanks Set smlWS = Worksheets("SAP Materials List") smllastRow = smlWS.Range("B65536").End(xlUp).Row Set rngsml = smlWS.Range("B2:C" & smllastRow) Application.WorksheetFunction.VLookup(dbec.Offset( 0, 3).Value, rngsml, 2, False) & missingSAPlines |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
VLookUp Function
You need to remove missingSAPlines from the below code...
Application.WorksheetFunction.VLookup(dbec.Offset( 0, 3).Value, rngsml, 2,False) & missingSAPlines If this post helps click Yes --------------- Jacob Skaria "Ayo" wrote: Nothing happened. I don't understand how this is supposed to help me? "Jacob Skaria" wrote: Please try this. Suppose you have data in A1:B2. ColA ColB 1 One 2 Two In immediate window try this Msgbox Application.WorksheetFunction.VLookup(Range("A1"), Range("A1:B2"),2,False) -- If this post helps click Yes --------------- Jacob Skaria "Ayo" wrote: I am get this error message: "Unable to get the VLookup property of the WorksheetFunction class" when the code gets to the Application.WorksheetFunction line below. I sense there is something wrong but I can't put my finger on it. Any ideas? Thanks Set smlWS = Worksheets("SAP Materials List") smllastRow = smlWS.Range("B65536").End(xlUp).Row Set rngsml = smlWS.Range("B2:C" & smllastRow) Application.WorksheetFunction.VLookup(dbec.Offset( 0, 3).Value, rngsml, 2, False) & missingSAPlines |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to combine Combo Box function with Vlookup function | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION | Excel Worksheet Functions | |||
how do I write a vlookup function within an iserror function so t. | Excel Worksheet Functions | |||
I want to use Vlookup function and AND function in a single formu. | Excel Worksheet Functions |