1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
Sub trie()
'
' trie Macro
'
'
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$T$1064").AutoFilter Field:=6, Criteria1:=Array( _
"FRAIS DE TRANSPORT", "TRANSPORT", "TRANSPORT EPROUVETTES", _
"Transport SRUB V3 EMP2V3"), Operator:=xlFilterValues
Rows("2:122").Select
With Selection.Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveSheet.Range("$A$1:$T$1064").AutoFilter Field:=6, Criteria1:= _
"HM da STI"
Rows("3:3").Select
With Selection.Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveSheet.Range("$A$1:$T$1064").AutoFilter Field:=6, Criteria1:= _
"REGULARISATION FACTURE"
Rows("4:21").Select
With Selection.Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveSheet.Range("$A$1:$T$1064").AutoFilter Field:=6, Criteria1:= _
"FRAIS DE TRANSPORT"
ActiveSheet.Range("$A$1:$T$1064").AutoFilter Field:=6, Criteria1:= _
"=FMEC COUVERCLE BAV AV PARTIE AV", Operator:=xlOr, Criteria2:= _
"=FMEC FOND BAC CENT"
Rows("816:830").Select
With Selection.Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveSheet.Range("$A$1:$T$1064").AutoFilter Field:=6
ActiveWorkbook.Worksheets("Feuil1").AutoFilter.Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Feuil1").AutoFilter.Sort.SortFields.Add(Range( _
"F1:F1064"), xlSortOnCellColor, xlAscending, , xlSortNormal).SortOnValue.Color _
= RGB(255, 255, 153)
With ActiveWorkbook.Worksheets("Feuil1").AutoFilter.Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub |
Partager