Bonjour à toutes,
Je vous souhaite une belle journée 🙂
Je bute sur mon code de tri et je n'arrive pas à trouver le bon code
J'ai un code fait avec excel :
	
	
	
	
	
		
Je voudrais utiliser le code que m'avait donné job75 :
	
	
	
	
	
		
en y incluant le tri sur la couleur des cellules :
SortOnValue.Color = RGB(55, 86, 35)
Mais je n'y arrive pas 😡
Pourriez-vous m'aider ?
(si besoin, je ferai un petit fichier test)
Un grand remerciement,
Amicalement,
lionel,
	
		
			
		
		
	
				
			Je vous souhaite une belle journée 🙂
Je bute sur mon code de tri et je n'arrive pas à trouver le bon code
J'ai un code fait avec excel :
		VB:
	
	
	    ActiveWorkbook.Worksheets("Appels").Sort.SortFields.Clear
    ActiveWorkbook.Worksheets("Appels").Sort.SortFields.Add(Range("J4:J10000"), xlSortOnCellColor, xlAscending, , xlSortNormal).SortOnValue.Color = RGB(55, 86, 35)
    With ActiveWorkbook.Worksheets("Appels").Sort
        .SetRange Range("A4:zz10000")
        .Header = xlGuess
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With
	Je voudrais utiliser le code que m'avait donné job75 :
		Code:
	
	
	    With ActiveSheet 'Feuil1 'CodeName
    If .FilterMode Then .ShowAllData 'si la feuille est filtrée
    With .Rows("4:" & .Range("a65536").End(xlUp).Row)
        If .Row < 4 Then Exit Sub 'sécurité
        .Sort .Columns(1), xlAscending, Header:=xlNo
    End With
    End With
	SortOnValue.Color = RGB(55, 86, 35)
Mais je n'y arrive pas 😡
Pourriez-vous m'aider ?
(si besoin, je ferai un petit fichier test)
Un grand remerciement,
Amicalement,
lionel,
			
				Dernière édition: