From: zxcv on
If a create a macro intended to be used as a function in a worksheet
is there a property of the referring cell?

I want to know what cell the formula is in.
From: JLGWhiz on
Dim callCell As String
callCell = Application.Caller.Address

Returns the cell address of the cell where the UDF is used.


"zxcv" <zxcvnosend(a)yahoo.com> wrote in message
news:aef3cafd-4c52-40a6-8348-ebf957b3abad(a)a21g2000yqn.googlegroups.com...
> If a create a macro intended to be used as a function in a worksheet
> is there a property of the referring cell?
>
> I want to know what cell the formula is in.


From: zxcv on
On Apr 29, 3:50 pm, "JLGWhiz" <JLGW...(a)cfl.rr.com> wrote:
> Dim callCell As String
> callCell = Application.Caller.Address
>
> Returns the cell address of the cell where the UDF is used.
>
> "zxcv" <zxcvnos...(a)yahoo.com> wrote in message
>
> news:aef3cafd-4c52-40a6-8348-ebf957b3abad(a)a21g2000yqn.googlegroups.com...
>
> > If a create a macro intended to be used as a function in a worksheet
> > is there a property of the referring cell?
>
> > I want to know what cell the formula is in.

Thanks.