S
STEPHANE786
Guest
Bonsoir a tous
besoin de votre aide
je n arrive pas a faire fonctionner une double liste deroulante quand des cellules sont fusionnés
voir dans fichier joint feuille livraison cellule a15 b15
je pense que le soucis viens de
If .Rows.Count > 1 Or .Columns.Count > 1 Then Exit Sub
Merci d avance
le code
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Isect As Range
Static IsOn As Boolean
If IsOn Then
IsOn = False
Exit Sub
End If
Set Isect = Application.Intersect(Target, Range("livre2"))
If Isect Is Nothing Then Exit Sub
With Target
If .Rows.Count > 1 Or .Columns.Count > 1 Then Exit Sub
If .Value = "" Then Exit Sub
Sheets("liste deroulante").Range("A300").Value = .Value
With .Validation
.Modify Formula1:="=Listename2"
End With
End With
SendKeys "%{DOWN}", False
IsOn = True
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Isect As Range
Set Isect = Application.Intersect(Target, Range("livre2"))
If Isect Is Nothing Then Exit Sub
With Target
If .Rows.Count > 1 Or .Columns.Count > 1 Then Exit Sub
With .Validation
.Modify Formula1:="=ListeAlpha2"
End With
End With
SendKeys "%{DOWN}", False
End Sub
besoin de votre aide
je n arrive pas a faire fonctionner une double liste deroulante quand des cellules sont fusionnés
voir dans fichier joint feuille livraison cellule a15 b15
je pense que le soucis viens de
If .Rows.Count > 1 Or .Columns.Count > 1 Then Exit Sub
Merci d avance
le code
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Isect As Range
Static IsOn As Boolean
If IsOn Then
IsOn = False
Exit Sub
End If
Set Isect = Application.Intersect(Target, Range("livre2"))
If Isect Is Nothing Then Exit Sub
With Target
If .Rows.Count > 1 Or .Columns.Count > 1 Then Exit Sub
If .Value = "" Then Exit Sub
Sheets("liste deroulante").Range("A300").Value = .Value
With .Validation
.Modify Formula1:="=Listename2"
End With
End With
SendKeys "%{DOWN}", False
IsOn = True
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Isect As Range
Set Isect = Application.Intersect(Target, Range("livre2"))
If Isect Is Nothing Then Exit Sub
With Target
If .Rows.Count > 1 Or .Columns.Count > 1 Then Exit Sub
With .Validation
.Modify Formula1:="=ListeAlpha2"
End With
End With
SendKeys "%{DOWN}", False
End Sub