ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I get the address of the cell that is being calculated right now? (https://www.excelbanter.com/excel-programming/332517-how-do-i-get-address-cell-being-calculated-right-now.html)

Wayne Erfling

How do I get the address of the cell that is being calculated right now?
 
I'd like to be able to tell the user which cell has an error (such as an
invalid parameter) when my function might be called from many cells (such as
after a PASTE).

How can I identify which cell is being calculated (get the address) when my
function is called, from within that function?

Thanks!

---Wayne



Tom Ogilvy

How do I get the address of the cell that is being calculated right now?
 
set rng = Application.Caller
msgbox rng.Address

--
Regards,
Tom Ogilvy


"Wayne Erfling" wrote in message
...
I'd like to be able to tell the user which cell has an error (such as an
invalid parameter) when my function might be called from many cells (such

as
after a PASTE).

How can I identify which cell is being calculated (get the address) when

my
function is called, from within that function?

Thanks!

---Wayne






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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com