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!
- Aug 07 Thu 2008 20:45
Function that Returns address of that cell?
close
全站熱搜
留言列表
發表留言