Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveCell.Value = Application.WorksheetFunction.VLookup(A5,
europe_usedinprint, 2, False) results in `unable to get the vlookup property of the worksheetfunction class' I am sure the data being sought exists in all the places it should. any suggestions where I might be able to fix? thanks in advance. Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You probably mean to do this:
ActiveCell.Value = Application.WorksheetFunction.VLookup(Range("A5"). Value, europe_usedinprint, 2, False) -- - K Dales "Larry Levinson" wrote: ActiveCell.Value = Application.WorksheetFunction.VLookup(A5, europe_usedinprint, 2, False) results in `unable to get the vlookup property of the worksheetfunction class' I am sure the data being sought exists in all the places it should. any suggestions where I might be able to fix? thanks in advance. Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks for the effort, but i get the same error.
"K Dales" wrote: You probably mean to do this: ActiveCell.Value = Application.WorksheetFunction.VLookup(Range("A5"). Value, europe_usedinprint, 2, False) Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What is europe_usedinprint
is it a defined name or do you use a set statement with it such as set europe_usedinprint = Worksheets("ABC.xls").Range("A1:F2000") you are using it like it is the latter. If it is a defined name ActiveCell.Value = Application.VLookup(Range("A5").Value, _ Range("europe_usedinprint"), 2, False) -- Regards, Tom Ogilvy "Larry Levinson" wrote in message ... thanks for the effort, but i get the same error. "K Dales" wrote: You probably mean to do this: ActiveCell.Value = Application.WorksheetFunction.VLookup(Range("A5"). Value, europe_usedinprint, 2, False) Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It is a defined name ... not using a set statment.
"Tom Ogilvy" wrote: What is europe_usedinprint is it a defined name or do you use a set statement with it such as set europe_usedinprint = Worksheets("ABC.xls").Range("A1:F2000") you are using it like it is the latter. If it is a defined name ActiveCell.Value = Application.VLookup(Range("A5").Value, _ Range("europe_usedinprint"), 2, False) Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
error 2042 and activecell.value - #N/A
"Tom Ogilvy" wrote: What is europe_usedinprint is it a defined name or do you use a set statement with it such as set europe_usedinprint = Worksheets("ABC.xls").Range("A1:F2000") you are using it like it is the latter. If it is a defined name ActiveCell.Value = Application.VLookup(Range("A5").Value, _ Range("europe_usedinprint"), 2, False) Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That is the same as the #N/A that you get if you use it in a cell. It means
it didn't find the value you were looking for. You can test it with iserror dim res as Variant res = Application.VLookup(Range("A5").Value, _ Range("europe_usedinprint"), 2, False) if iserror(res) then Msgbox "Not found" else activecell.value = res End if "Larry Levinson" wrote in message ... error 2042 and activecell.value - #N/A "Tom Ogilvy" wrote: What is europe_usedinprint is it a defined name or do you use a set statement with it such as set europe_usedinprint = Worksheets("ABC.xls").Range("A1:F2000") you are using it like it is the latter. If it is a defined name ActiveCell.Value = Application.VLookup(Range("A5").Value, _ Range("europe_usedinprint"), 2, False) Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Fri, 05 Aug 2005 11:52:56 -0400, Larry Levinson
wrote: ActiveCell.Value = Application.WorksheetFunction.VLookup(A5, europe_usedinprint, 2, False) results in `unable to get the vlookup property of the worksheetfunction class' I am sure the data being sought exists in all the places it should. any suggestions where I might be able to fix? thanks in advance. Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) Does the vlookup work as a formula in the worksheet or do you get #VALUE? Rgds __ Richard Buttrey Grappenhall, Cheshire, UK __________________________ |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
works as a value ...
Richard Buttrey wrote: On Fri, 05 Aug 2005 11:52:56 -0400, Larry Levinson wrote: ActiveCell.Value = Application.WorksheetFunction.VLookup(A5, europe_usedinprint, 2, False) results in `unable to get the vlookup property of the worksheetfunction class' I am sure the data being sought exists in all the places it should. any suggestions where I might be able to fix? thanks in advance. Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) Does the vlookup work as a formula in the worksheet or do you get #VALUE? Rgds __ Richard Buttrey Grappenhall, Cheshire, UK __________________________ Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
WorksheetFunction.Vlookup | Excel Discussion (Misc queries) | |||
Worksheetfunction.vlookup and #value error | Excel Worksheet Functions | |||
Worksheetfunction.Vlookup | Excel Programming | |||
vlookup worksheetfunction | Excel Programming | |||
worksheetfunction.vlookup? | Excel Programming |