Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell Change Event
Is there a change event for a specific cell?
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell Change Event
No, not for a specific cell per se, but filtering to an individual cell is
quite easy to do. In the VBA editor, within the worksheet code window, click the left-hand drop down and select Worksheet from the list; then click the right-hand drop down and select Change from its list. Whenever any cell is finished being edited, the Change event fires and the Target argument contains a reference to the cell that was changed. Let's say you wanted to run code whenever C3 was changed; you could do this... If Target = Range("C3") Then ' Your code goes here End If Rick "Edd" wrote in message ... Is there a change event for a specific cell? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell Change Event
The title line should read:
Private Sub Worksheet_Change(ByVal Target as Range) "Edd" wrote: Is there a change event for a specific cell? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell Change Event
Thank you Rick and JLGWhiz. That's what I ended up doing and it works
succesfully. I appreciate this forum and you guys.. Ed. "JLGWhiz" wrote: The title line should read: Private Sub Worksheet_Change(ByVal Target as Range) "Edd" wrote: Is there a change event for a specific cell? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change event -- cell colors change | Excel Programming | |||
Cell value change to trigger macro (worksheet change event?) | Excel Programming | |||
Cell change event | Excel Programming | |||
Change Cell from Validated List Not Firing Worksheet Change Event | Excel Programming | |||
Cell Change Event | Excel Programming |