Hey all,
Im looking to run a macro when a cell value changes.
ex
When cell F9 changes (any change) run macro sub Candyman ().
Thanks much ahead of time
Hey all,
Im looking to run a macro when a cell value changes.
ex
When cell F9 changes (any change) run macro sub Candyman ().
Thanks much ahead of time
[VBA]
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Exits
Application.EnableEvents = False
If Target.Address = "$F$9" Then
Call Candyman
'do other stuff
End If
Exits:
Application.EnableEvents = True
End Sub
[/VBA]
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Excellent! Thanks much