View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
KAHAUS KAHAUS is offline
external usenet poster
 
Posts: 3
Default UDF Returning #N/A

With a user defined function saved in an *.xla add-in...
How can I make the function return the worksheet error value #N/A?

as an example (that doesn't work)

Function MyFunction(x,y, optional z)
MyFunction = application.worksheetfunction.NA()
End Function