I can't figure out how to create dropdown lists depending on a certain cell value. I have these two functions but don't know how to merge them.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("C14")) Is Nothing Then
Select Case Range("C14")
Case "Emergency": EmergencyError
Range("C18") = "No"
'Case "Basic": ??
'Stops Select Case statement
End Select
End If
End Sub
Sub BasicList()
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=DONNEES!$A$4:$A$10"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
End Sub
The dropdowns to create are on another cell, the same only cell.