close

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 quot;A1quot;
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 FunctionIf 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

--
Gary''s Studentquot;RayWolfDogquot; wrote:

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

In the worksheet:

=ADDRESS(ROW(),COLUMN())

will also display the address
--
Gary''s Studentquot;RayWolfDogquot; wrote:

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

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()