function 's cell caller

  • Thread starter Thread starter David C.
  • Start date Start date
D

David C.

Hello,

I complety forgot how to do this,

in a function (used as a formula in a cell) I need the adress of this cell
how to know the row/col of the cell from wich the function is calculated ?

thank you...
 
David, was it s'th like this?

if TypeName(application.caller)="Range" then
set rngCaller=application.caller
endif

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


David C. wrote :
 
if TypeName(application.caller)="Range" then
set rngCaller=application.caller
endif

that's it except that I suppose the Type will always be a Range in my case
(function called only from a formula in a cell )

Thx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top