Any item will run the macro or certain items will run certain macros?
This worksheet change event will run MyMacro whenever any item is picked
from the DV dropdown.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Me.Range("H4")) Is Nothing Then Exit Sub
On Error GoTo CleanUp
Application.EnableEvents = False
With Target
If .Value <> "" Then
MyMacro
End If
End With
CleanUp:
Application.EnableEvents = True
End Sub
Any item will run the macro or certain items will run certain macros?
This worksheet change event will run MyMacro whenever any item is picked
from the DV dropdown.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Me.Range("H4")) Is Nothing Then Exit Sub
On Error GoTo CleanUp
Application.EnableEvents = False
With Target
If .Value <> "" Then
MyMacro
End If
End With
CleanUp:
Application.EnableEvents = True
End Sub
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.