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
Hola a todos:
Vuelvo a subir este aporte porqué parece ser que ha desaparecido.
Enlace: https://www.ayudaexcel.com/foro/ideas-aportes-64/visualizar-archivos-pdf-16318
Adjunto 2 archivos con 2 opciones distintas:
Saludos
Visor PDF.xls
Visor de PDFs -Multiples carpetas.zip