What range is a cell in?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Concerning Excel VBA: Does anyone know of a way that I can find out what range a particular cell (ActiveCell) is in? Here's the situation: I have several named ranges in a worksheet. When a cell changes, if it is in a particular range, then some code needs to be executed, and, if it's in another range, other code needs to be executed

Thanks!
 
I use "Change-Event" processing to detect when a cell value
has been altered. I'm sorry, but to explain it will take
more room than I have available here. See if you can find
an explanation of Event processing somewhere like in John
Walkenbach's book on VBA programming.
-----Original Message-----
Concerning Excel VBA: Does anyone know of a way that I can
find out what range a particular cell (ActiveCell) is in?
Here's the situation: I have several named ranges in a
worksheet. When a cell changes, if it is in a particular
range, then some code needs to be executed, and, if it's in
another range, other code needs to be executed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top