Function that Returns address of that cell?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a function (or combination of) that will return the address (useable
in another function) of the cell that the function is in? For my particular
project I cannot use any NAMES, or actual cell references (like putting "A1"
in cell A1), or VB code. It requires a very specific solution, essentially a
function (or combo of) that will return the address of the cell that the
function is in. It seems SO simple and yet is nowhere to be found by me yet.
HELP! THANKS!
 
Function Gary()
Debug.Print Application.Caller.Address
MsgBox (Application.Caller.Address)
End Function


If the function has a range (single cell) as an argument like
Function asdf(r as range) as variant

Then r.Address will give the cell address
 
In the worksheet:

=ADDRESS(ROW(),COLUMN())

will also display the address
 

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