Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need to know what cell called the custom VBA function?

I have developed a custom VBA function (foo). In a cell on the worksheet, I
add
=Foo() . When Foo begins to run, I want to know what is the activeCell.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Need to know what cell called the custom VBA function?

If you mean from which cell the function was called:

Dim r as Range
set r = Application.Caller

--
Gary''s Student


"partyOfOne" wrote:

I have developed a custom VBA function (foo). In a cell on the worksheet, I
add
=Foo() . When Foo begins to run, I want to know what is the activeCell.

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
How do I know which cell a function is called from? Murami Excel Worksheet Functions 3 November 24th 06 02:22 PM
Custom Function being called when it shouldn't. Ron[_28_] Excel Programming 1 January 18th 05 07:01 PM
Custom Function being called when it shouldn't. Ron[_28_] Excel Programming 1 January 18th 05 06:13 PM
How can I find the last time a custom function is called ? James Shoffit Excel Programming 1 December 6th 04 05:52 PM
Using a Custom Function - determining the row that called it Masa Ito Excel Programming 3 October 1st 04 02:49 AM


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

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

About Us

"It's about Microsoft Excel"