ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Referencing Calling Cell (https://www.excelbanter.com/excel-programming/293210-re-referencing-calling-cell.html)

JE McGimpsey

Referencing Calling Cell
 
One way:

Public Function WhoAmI() As String
If TypeName(Application.Caller) = "Range" Then _
WhoAmI = Application.Caller.Address(0, 0)
End Function



In article ,
"John H W" wrote:

I know that you can call or find out the the active cell when in a
function/sub, but I can not find out if there is a way to find out the
CALLING cell (without out passing the value as a parameter).

Thanks,
John H W



All times are GMT +1. The time now is 02:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com