View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
bert bert is offline
external usenet poster
 
Posts: 30
Default error 2042 with vlookup

I have a named range ("LC_Chars"), and am trying to use the following code:
sz = Application.VLookup(x, LC_Chars, 2, False)
It is comparing a single character (x; in this case x="7", though the error
is generated no matter what the value of x.). The named range contains two
columns. The search column has been formatted as text and does contain a
"7".
The fix has to be simple, but I'm not seeing it.
Bert