Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default function 's cell caller

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 C.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default function 's cell caller

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 :

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...


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default function 's cell caller

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


Reply
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
Application.Caller Marcelo Excel Discussion (Misc queries) 6 June 23rd 06 03:07 PM
application.caller Jase Excel Programming 0 January 6th 04 03:51 AM
Application.caller Clark B Excel Programming 2 July 29th 03 11:17 PM
Determining the immediate caller of a function Ryan Poth[_2_] Excel Programming 2 July 18th 03 03:13 AM
DDE and application.caller help Ross Kaminsky Excel Programming 1 July 17th 03 04:17 PM


All times are GMT +1. The time now is 08:03 AM.

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

About Us

"It's about Microsoft Excel"