Bonjour,Bonjour à tous
Voici ma requête
Dans le fichier joint, colonne A => les 26 lettres de l'alphabet
Colonne B => la liste déroulante.
Comment puis-je SVP aller dans la cellule correspondant a la demande de la liste déroulante?
Cordialement
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$B$1" Then Exit Sub
Application.Goto (Cells(Application.Match(Target, [A:A], 0), 1))
End Sub
Dim ligne&
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$1" Then
ligne = Application.Match([B1], [A:A], 0)
Application.Goto Cells(ligne, 1)
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$1" Then
Application.Goto Cells(Range([B1] & "1").Column, 1)
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$1" Then
Application.Goto Cells((Asc([B1]) + 1) Mod 65, 1)
End If
End Sub
Hello Staple1600Re
Alors pour varier les plaisirs et pour ne pas doublonner
(comme le fait ma précédent proposition)
Une autre syntaxe qui ne fonctionne que pour l'exemple soumis
VB:Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$B$1" Then Application.Goto Cells(Range([B1] & "1").Column, 1) End If End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$B$1" Then Exit Sub
Application.Goto [a:a].Find(Target)
End Sub