Suppose I have a function attached to one of my Excel sheets:
Public Function foo(bar As Integer) as integer
foo = 42
End Function
How can I get the results of foo
returned to a cell on my sheet? I've tried "=foo(10)"
, but all it gives me is "#NAME?"
I've also tried =[filename]!foo(10) and [sheetname]!foo(10)
with no change.