View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
[email protected] joeu2004@hotmail.com is offline
external usenet poster
 
Posts: 418
Default 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.