When a cell is change

G

Guest

Good morning, How could I say to excel that when a cell changes (lets say a2)
execute something,
something like:
if cells(2,1)<>"" then ...bla bla bla

but this works just with cells with no values in them

I want that wherever value is in the cell, when user changes it, execute the
proceedure.
 
D

Don Guillett

use a worksheet_change event.right click sheet tab>view code>left window use
worksheet>right window change

if target.address="$A$2" then bla
 
T

Tom Ogilvy

Use the Change event if the user will cause the cell to change by editing
it. You would have to construct your code to operate the way you want.
the event is triggered - then your code in the event determines when to act
and when not to act.

See Chip Pearson's page on Events
http://www.cpearson.com/excel/events.htm
 
G

Guest

Thanks you both, your information was very helpfull
(It's thanks you both or Thank you both???)
 

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

Top