View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] therealmichaelnull@gmail.com is offline
external usenet poster
 
Posts: 3
Default using defined name in UDF

I have a sheet with some defined names on it:

Name1 = A1:C1

when I type =Name1 in A5 it returns the value in A1. When I type =Name1 in C5 it returns the value in C1.

Is there a way to replicate this behavior when passing these names to a UDF?

My function work if the defined name is one cell but returns #value when the name is defined as above... I assume this is because my code is not able to except an array.

Any help would be appreciated.