How to pass cell reference to VBA function?
"Zack Barresse" wrote:
Function MyCell(rngRef As Range) As Variant
[....]
MyCell = rngRef.Formula
Klunk! I had tried "ref as Range", but I thought it
did not work because "msgbox ref" displayed the
value instead of the address. I guess "ref" alone
defaults to ref.Value. Klunk!
Thanks for a clear and succinct explanation.
|