Hello, I've been googling this and just can't make it work for me. Cells A1,A2 and A3 have a dropdown list, datavalidation one, and depending on whats selected from any list to run corresponding macros
so ex if A1=option1 call macro1
if A1=option2 call macro2
if a2=option1 call macro3
if A2=option2 call macro4
etc
This is what's not working for me atm
Thank you
so ex if A1=option1 call macro1
if A1=option2 call macro2
if a2=option1 call macro3
if A2=option2 call macro4
etc
This is what's not working for me atm
Code:
Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo fixit
Application.EnableEvents = False
Select Case Target.Address
Case "b2"
If Target.Value = "Add" Then
Call Macro1
Else: Call Macro2
End If
Case "h2"
If Target.Value = "Add" Then
Call Macro3
Else: Call Macro4
End If
Case "n2"
If Target.Value = "Add" Then
Call Macro5
Else: Call Macro6
End If
End Select
fixit: Application.EnableEvents = True
Application.CutCopyMode = False
End Sub
Last edited: