Conan,
A user-defined function can't put anything into a cell, other than to return a value into
the formula in the cell that contains it. Calls to UDFs live in cell formulas. A sub (as
opposed to a function) could put stuff into a cell.
Both are considered macros. Either will give you the macro warning when you open a file
containing them. A function can't change a cell, but try putting
kill "book1.xls"
in a function, and it'll happily delete that file when the function is called from a cell.
Not useful, because the next time it appears in a cell, and gets calculated, it'll produce
an error value, because the file is no longer there.
--
Earl Kiosterud
www.smokeylake.com
Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------