Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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




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
Pivot table, IF function, calculated item versus calculated field NomadPurple Excel Discussion (Misc queries) 1 March 9th 10 03:17 PM
Pasting to calculated address Jerry Excel Discussion (Misc queries) 1 September 29th 09 03:46 PM
I want to create a calculated item based on a calculated field Stijn Excel Discussion (Misc queries) 1 August 25th 08 05:30 PM
pivot table formulas for calculated field or calculated item Vicky Excel Discussion (Misc queries) 3 June 6th 06 05:06 AM
how to change a calculated cell to = the calculated value CAM Excel Discussion (Misc queries) 4 January 26th 06 05:26 PM


All times are GMT +1. The time now is 11:48 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"