I want to define something like:
function mycell(ref)
mycell = range(ref).something
end function
That works if I call it from a spreadsheet formula
in the form mycell("A1"). But I want to call it in
the form mycell(A1) -- no quotes -- so that mycell()
is recomputed if A1 changes.
How can I do that? That is, how do I declare "ref",
and/or how do I pass A1 so that it can be used in
the VBA range() function, without passing "A1" as
a string?
Note: I am using Office Excel 2003, if that matters.
Bookmarks