PC Review


Reply
Thread Tools Rate Thread

Address of calling cell?

 
 
=?Utf-8?B?RGVzZXJ0Q3ljbGlzdA==?=
Guest
Posts: n/a
 
      26th Oct 2007
Is there a way for a UDF to know the address of the cell that called it? That
cell may not be the active cell!

Thank you.
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      26th Oct 2007
Application.Caller.Address

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DesertCyclist" <(E-Mail Removed)> wrote in message
news:FE296CAA-AEEF-49A7-A4BF-(E-Mail Removed)...
> Is there a way for a UDF to know the address of the cell that called it?
> That
> cell may not be the active cell!
>
> Thank you.



 
Reply With Quote
 
Tim Zych
Guest
Posts: n/a
 
      26th Oct 2007
Application.Caller returns a range object:

Function Func1() As String
Debug.Print Application.Caller.Address
Func1 = "test"
End Function


--
Tim Zych
SF, CA

"DesertCyclist" <(E-Mail Removed)> wrote in message
news:FE296CAA-AEEF-49A7-A4BF-(E-Mail Removed)...
> Is there a way for a UDF to know the address of the cell that called it?
> That
> cell may not be the active cell!
>
> Thank you.



 
Reply With Quote
 
Chip Pearson
Guest
Posts: n/a
 
      26th Oct 2007
In a UDF, Application.Caller returns a Range object referencing the cell
from which it was called.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"DesertCyclist" <(E-Mail Removed)> wrote in message
news:FE296CAA-AEEF-49A7-A4BF-(E-Mail Removed)...
> Is there a way for a UDF to know the address of the cell that called it?
> That
> cell may not be the active cell!
>
> Thank you.


 
Reply With Quote
 
=?Utf-8?B?RGVzZXJ0Q3ljbGlzdA==?=
Guest
Posts: n/a
 
      26th Oct 2007
Thank you all. This did the trick!

"Bob Phillips" wrote:

> Application.Caller.Address
>
> --
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
> "DesertCyclist" <(E-Mail Removed)> wrote in message
> news:FE296CAA-AEEF-49A7-A4BF-(E-Mail Removed)...
> > Is there a way for a UDF to know the address of the cell that called it?
> > That
> > cell may not be the active cell!
> >
> > Thank you.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get address of cell calling UDF? JoeU2004 Microsoft Excel Programming 2 18th Sep 2009 04:47 AM
Get cell address calling a function in C# Julien Microsoft Excel Programming 0 14th Jan 2009 01:59 PM
Return cell address of a cell based on contents of cell. Danny Microsoft Excel Worksheet Functions 4 15th Nov 2008 03:11 AM
calling custom address book from mail form =?Utf-8?B?TWljaGFlbCBNdWVsbGVy?= Microsoft Outlook Form Programming 2 9th Aug 2007 04:10 PM
calling an IP address =?Utf-8?B?TUI=?= Windows XP Messenger 3 18th Feb 2005 12:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:09 AM.