'Macro 1'
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("B13")) Is Nothing Then Exit Sub
Dim Choices As String
Select Case Target.Value
Case "None"
With Range("B14")
.Validation.Delete
.Value = "None"
End With
With Range("B15")
.Validation.Delete
.Value = "None"
End With
Case "Servo Gun Axis"
Choices = "Servo"
With Range("B14").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:=Choices
End With
Case "Slider Axis"
Choices = "Slider"
With Range("B14").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:=Choices
End With
Case "Turntable Axis"
Choices = "Turntable"
With Range("B14").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:=Choices
End With
Case "Flex Hand"
Choices = " Flex"
With Range("B14").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:=Choices
End With
End Select
'Macro 2'
If Intersect(Target, Range("B38")) Is Nothing Then Exit Sub
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 Sub