Jean-luc1311
XLDnaute Occasionnel
Bonjour à tous,
Voila un code que j'utilise dans un tableau pour les colonnes A à G et cela fonctionne.
Que faudrait-il changer pour faire la même chose sur les colonnes H à J sans toucher l'ordre des lignes des colonnes A à G?
J'avoue que je patauge pas mal pour adapter cela.
Cordialement.
JL
Voila un code que j'utilise dans un tableau pour les colonnes A à G et cela fonctionne.
Que faudrait-il changer pour faire la même chose sur les colonnes H à J sans toucher l'ordre des lignes des colonnes A à G?
J'avoue que je patauge pas mal pour adapter cela.
Cordialement.
PHP:
Dl = .Range("A65000").End(xlUp).Row + 1
.Cells(Dl, 1) = ComboBox1
.Cells(Dl, 2) = ComboBox2
.Cells(Dl, 3) = ComboBox3
.Cells(Dl, 4) = ComboBox4
.Cells(Dl, 5) = ComboBox5
.Cells(Dl, 6) = CDbl(ComboBox6)
.Cells(Dl, 7) = ComboBox7
With .Range("A4:G" & Dl)
.Sort Key1:=.Range("A4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
.HorizontalAlignment = xlLeft
End With
End With
End If
End Sub
JL