Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can a function determine what cell it is located in?

Status
Not open for further replies.

BillBrosius

Programmer
Jan 9, 2003
33
US
Can a User Defined Function determine what cell it is being executed from if it is not currently the active cell?

Thanks.

Bill
 
yes. use application.caller. When called from a worksheet calculation, this will return a range object.
Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top