Hola,
Este código hace literalmente eso
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Me.Range("B2")) Is Nothing Then
Application.EnableEvents = False
Me.Range("B3").ClearContents
With Me.Range("B3").Validation
.Delete
Select Case Me.Range("B2").Value
Case 1
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, Formula1:="Avion,Barco"
Case 3
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, Formula1:="Barco"
Case Else
End Select
End With
Application.EnableEvents = True
End If
End Sub
Por
Israel Cassales, · publicado
Saludos cordiales a todos.
¿Qué opinan sobre el Microsoft Excel World Championship?
¿Alguien intento alguno de los tres ejercicios del 2022? En caso de que sí ¿Qué tal, cómo los sentiste?
De los tres a mí me gusto más la Regatta
¿Alguno a pensado inscribirse para este año o no les llama su atención?
Microsoft ExcelWorld Championship 2023
Saludines