Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("B13,B38")) Is Nothing Then Exit Sub
If Target.Address = "$B$13" Then
Select Case Target.Value
Case "None"
With Range("B14:B15")
.Validation.Delete
.Value = "None"
End With
Case "Servo Gun Axis"
Range("B14:B15").ClearContents
With Range("B14").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="Servo"
End With
Case "Slider Axis"
Range("B14:B15").ClearContents
With Range("B14").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="Slider"
End With
Case "Turntable Axis"
Range("B14:B15").ClearContents
With Range("B14").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="Turntable"
End With
Case "Flex Hand"
Range("B14:B15").ClearContents
With Range("B14").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="Flex"
End With
End Select
ElseIf Target.Address = "$B$38" Then
Select Case Target.Value
Case "None"
With Range("B39:B45")
.Validation.Delete
.Value = "None"
End With
Case "Select from Below"
Range("B39:B45").ClearContents
With Range("B39").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="AC 380V,AC 400V,None"
End With
With Range("B40").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="Input 2CH:Output 4CH, None"
End With
With Range("B41").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="Built In Function , None"
End With
With Range("B42").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="Differential Input , None"
End With
With Range("B43").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="Flex, None"
End With
With Range("B44").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="ATI , Series, None"
End With
With Range("B45").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="Sensor unit, None"
End With
End Select
End If
End Sub