View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
David Laub David Laub is offline
external usenet poster
 
Posts: 8
Default Can I use a VBA function I write myself in a formula?

When I try this, I get a "Invalid Name' error in Excel - i can use built in
function and named cells fine

Is there some sort of subtle scoping/fully qualified name" issue


"Frank Kabel" wrote in message
...
Hi
use a macro like

public function my_function()
my_function=1234
end function

and in a cell type:
=MY_FUNCTION()

See: http://www.mvps.org/dmcritchie/excel/getstarted.htm

--
Regards
Frank Kabel
Frankfurt, Germany

"David Laub" schrieb im Newsbeitrag
...
Can I use a VBA function I write myself in a formula? It appears to

be
impossibe...



Thanks

David Laub