Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You test for your range
Private Sub Worksheet_Change(ByVal Target As Range) Const WS_RANGE As String = "H1:H10" '<== change to suit On Error GoTo ws_exit Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target ' do your stuff End With End If ws_exit: Application.EnableEvents = True End Sub -- --- HTH Bob (change the xxxx to gmail if mailing direct) "MikeZz" wrote in message ... I want to run some code whenever someone changes a value in a particular cell or range. I know how to do it on Worksheet_Change but don't want to have it actually run code (slowing response down) every time any cell changes. Is there a way to do this? Thanks, MikeZz |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code for a button to change cell location | Excel Discussion (Misc queries) | |||
How do I change cell color based upon data range within the cell? | Excel Worksheet Functions | |||
Change cell colour for a cell or range within a predefined range | Excel Programming | |||
Problem with Running VBA code on Cell Change | Excel Programming | |||
run code after cell contents change | Excel Programming |