LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How can a formula get the location of the cell it is placed in?

Public MyFunction( )
set rng = Application.Caller
rw = rng.row
col = rng.column
MyFunction = rng.address
End Function

--
Regards,
Tom Ogilvy

"Bernard" wrote in message
...
Hi-

Is there any way a formula can get the location of the cell it is placed
in? I need the row and column of the cell at recalculation time, not at

the
time formula was entered, so ActiveCell won't do the job.

Thanks in advance for any help.







 
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
a formula that return the cell location in a range danpt Excel Discussion (Misc queries) 5 May 3rd 09 12:43 PM
Macro - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
How do you have a formula range be determined by the location ofanother cell? Daniel[_3_] Excel Worksheet Functions 2 February 8th 08 03:01 PM
Using Dynamic Cell Address As Formula Location [email protected] Excel Worksheet Functions 4 March 6th 07 06:37 AM
how to auto increment cell location within formula Bill Excel Worksheet Functions 3 February 16th 06 02:23 PM


All times are GMT +1. The time now is 04:43 PM.

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

About Us

"It's about Microsoft Excel"