Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Address of calling cell?
Is there a way for a UDF to know the address of the cell that called it? That
cell may not be the active cell! Thank you. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Address of calling cell?
Application.Caller.Address
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "DesertCyclist" wrote in message ... Is there a way for a UDF to know the address of the cell that called it? That cell may not be the active cell! Thank you. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Address of calling cell?
Application.Caller returns a range object:
Function Func1() As String Debug.Print Application.Caller.Address Func1 = "test" End Function -- Tim Zych SF, CA "DesertCyclist" wrote in message ... Is there a way for a UDF to know the address of the cell that called it? That cell may not be the active cell! Thank you. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Address of calling cell?
In a UDF, Application.Caller returns a Range object referencing the cell
from which it was called. -- Cordially, Chip Pearson Microsoft MVP - Excel, 10 Years Pearson Software Consulting www.cpearson.com (email on the web site) "DesertCyclist" wrote in message ... Is there a way for a UDF to know the address of the cell that called it? That cell may not be the active cell! Thank you. |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Address of calling cell?
Thank you all. This did the trick!
"Bob Phillips" wrote: Application.Caller.Address -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "DesertCyclist" wrote in message ... Is there a way for a UDF to know the address of the cell that called it? That cell may not be the active cell! Thank you. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VLookup only calling one cell | Excel Discussion (Misc queries) | |||
Calling Cell (or ROW() and COLUMN() in VBA) | Excel Programming | |||
Referencing Calling Cell | Excel Programming | |||
Referencing Calling Cell | Excel Programming | |||
calling VBA functions from a cell | Excel Programming |