Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RayWolfDog
 
Posts: n/a
Default Function that Returns address of that cell?

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!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Function that Returns address of that cell?

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




--
Gary''s Student


"RayWolfDog" wrote:

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!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Function that Returns address of that cell?

In the worksheet:

=ADDRESS(ROW(),COLUMN())

will also display the address
--
Gary''s Student


"RayWolfDog" wrote:

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!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cell address ellebelle Excel Worksheet Functions 5 February 2nd 06 11:23 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
If function that returns value in a cell. rayteach Excel Worksheet Functions 4 June 6th 05 03:26 AM
How do I obtain the address of a cell using the vlookup function? Spock Excel Worksheet Functions 2 May 16th 05 06:35 PM
How do I use a function to return the address of a cell? ren6175 Excel Worksheet Functions 6 April 21st 05 03:13 PM


All times are GMT +1. The time now is 01:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"