View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
donty donty is offline
external usenet poster
 
Posts: 2
Default #Name for user function

I have written a function on the code for a sheet in my workbook eg

Public Function Test() As Double
return 1
End Function

However when I try to use it in a cell in my sheet like this =Test() I get a
#Name error.

What am I doing wrong?