pour déplace ce ligne
Private Sub cmdVersBas_Click() Dim LGn%, C%, I% Dim Infos With G C = .Cols LGn = .RowSel 1: .AllowBigSelection = False If LGn <= 1 Then Exit Sub For I = 0 To C - 1 Infos = .TextMatrix(LGn + 1, I) .TextMatrix(LGn + 1, I) = .TextMatrix(LGn, I) .TextMatrix(LGn, I) = Infos Next I If MsgBox("Descendre encore cet élément ?", vbYesNo + vbQuestion) = vbYes Then If LGn >= 1 And LGn < G.Rows Then LGn = LGn + 1 GoTo 1 End If Else: Exit Sub End If End With End Sub Private Sub cmdVersHaut_Click() Dim LGn%, C%, I% Dim Infos With G C = .Cols LGn = .RowSel 1: If LGn <= 1 Then Exit Sub For I = 0 To C - 1 Infos = .TextMatrix(LGn - 1, I) .TextMatrix(LGn - 1, I) = .TextMatrix(LGn, I) .TextMatrix(LGn, I) = Infos Next I If MsgBox("Remonter encore cet élément ?", vbYesNo + vbQuestion) = vbYes Then If LGn > 2 Then LGn = LGn - 1 GoTo 1 End If Else: Exit Sub End If End With End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionMerci enfin de nous dire ce que tu as bien pu faire des 15 discussions que tu as ouvertes sur ce forum, sans suite donnée.