This is an example of a worksheet change macro
It adds 1 to the value in c3 every time a1 or b1 is changed
Replace cell refences in red with a single cell or a cell range to suit
Replace Code in Pink with what action you want the macro to take
VB:Private Sub Worksheet_Change(ByVal Target As Range) If Not Application.Intersect(Target, Range("[COLOR="Red"]a1:b1[/COLOR]")) Is Nothing Then Application.EnableEvents = False [COLOR="Magenta"]Range("c3").Value = Range("c3").Value + 1[/COLOR] End If Application.EnableEvents = True End Sub


Reply With Quote
Bookmarks