View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
sammy sammy is offline
external usenet poster
 
Posts: 48
Default Lookup-function does not work

I have a simple VBA sub:

sub test
Cells(2, 3).FormulaR1C1 = "=LOOKUP(3;R1C2:R5C2;R1C1:R5C1)"
end sub

Result is error ('Run-time error '1004': Application-defined or object
defined error'). Is this Excel-bug or am I missing something?