Cell Name

  • Thread starter Thread starter Andy Chan
  • Start date Start date
A

Andy Chan

Dear all,

How can I retrieve the cell reference? I want to write a function
MyFunction which gives the string "B3" when MyFunction() is input in B3 of a
worksheet. Thanks in advance!

Best Regards,
Andy
 
=CELL("address")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
function myfunction() as string
myfunction = Application.caller.address(0,0)
end function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top