vinystic
Messages postés9Date d'inscriptiondimanche 9 avril 2006StatutMembreDernière intervention12 mars 2007
-
4 mars 2007 à 00:27
mortalino
Messages postés6786Date d'inscriptionvendredi 16 décembre 2005StatutMembreDernière intervention21 décembre 2011
-
4 mars 2007 à 12:39
Bonsoir;
j'ai un problème pour trier un tableau excel. voici mon code:
Dim
xlAscending
As
Excel.XlSortOrder
Dim
xlGuess
As
Excel.XlSortMethod
Dim
xlTopToBottom
As
Excel.XlSortOrientation
doc.Worksheets("Liste").range("A2:I" & i).Sort(Key1:=doc.Worksheets("Liste").Range("A2"), Order1:=xlAscending, _ Header:=xlGuess, OrderCustom:=1, MatchCase:=
False
, Orientation:=xlTopToBottom)
Une exception non gérée du type 'System.Runtime.InteropServices.COMException' s'est produite dans microsoft.visualbasic.dll
Informations supplémentaires : La méthode Sort de la classe Range a échoué.
' pour
infos :
' ** xlGuess est membre de XlYesNoGuess
(et non de xlSortMethode)
' ** xlTopToBottom est
membre de Constants (et non de xlSortOrientation)