Bonjour,
Je voudrais trier les lignes d'un fichier excel par rapport a une colonne (montant)
dans l'ordre croissant, depuis delphi 7. Je fais
mais j'ai une erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 ws.Range[ws.Cells.Item[LigneTitre+1,LaColEcritMax],ws.Cells.Item[LigneTitre+1,LaColEcritMax]].Select; ws.Range[ws.Cells.Item[LigneTitre+1,LaColEcritMax],ws.Cells.Item[LaLigne,LaColEcritMax]].Sort( ws.Range[ws.Cells.Item[LigneTitre+1,LaColEcritMax],ws.Cells.Item[LigneTitre+1,LaColEcritMax]], xlAscending, 0, emptyparam, emptyparam, emptyparam, emptyparam, xlNo, emptyparam, False, xlTopToBottom, xlPinYin, xlSortNormal, emptyparam, emptyparam );
Quelqu'un aurait un exemple, une aide ?
Partager