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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
Sub RAZ()
Dim nom As String
For j = 8 To 12
For i = 7 To 38
With ThisWorkbook.Sheets("FI")
.Cells(i, j).Interior.ColorIndex = 2
End With
Next i
Next j
For i = 7 To 26
With ThisWorkbook.Sheets("FI")
.Range(.Cells(i, 2), .Cells(i, 12)).Interior.ColorIndex = 2
End With
nom = "MDD" & i - 6
ThisWorkbook.Sheets(nom).Tab.ColorIndex = 2
With ThisWorkbook.Sheets("FD-MDD")
.Range(.Cells(i, 2), .Cells(i, 5)).Interior.ColorIndex = 2
End With
Next i
For i = 29 To 39
With ThisWorkbook.Sheets("FI")
.Range(.Cells(i - 2, 2), .Cells(i - 2, 12)).Interior.ColorIndex = 2
End With
nom = "MDD" & i - 8
ThisWorkbook.Sheets(nom).Tab.ColorIndex = 2
With ThisWorkbook.Sheets("FD-MDD")
.Range(.Cells(i, 2), .Cells(i, 5)).Interior.ColorIndex = 2
End With
Next i
With ThisWorkbook.Sheets("FD-MDD")
.Range(.Cells(42, 2), .Cells(42, 5)).Interior.ColorIndex = 2
End With
nom = "MDD" & 32
ThisWorkbook.Sheets(nom).Tab.ColorIndex = 2
With ThisWorkbook.Sheets("FI")
.Range(.Cells(42, 2), .Cells(42, 7)).Interior.ColorIndex = 2
End With
With ThisWorkbook.Sheets("FI")
.Cells(7, 10).Interior.ColorIndex = 1
.Cells(18, 10).Interior.ColorIndex = 1
.Cells(35, 10).Interior.ColorIndex = 1
End With
For i = 8 To 17
With ThisWorkbook.Sheets("FI")
.Cells(i, 9).Interior.ColorIndex = 1
End With
Next i
For i = 19 To 34
With ThisWorkbook.Sheets("FI")
.Cells(i, 9).Interior.ColorIndex = 1
End With
Next i
For i = 36 To 38
With ThisWorkbook.Sheets("FI")
.Cells(i, 9).Interior.ColorIndex = 1
End With
Next i
For i = 1 To i = 32
nom = "MDD" & i
Sheets(nom).Visible = True
Next i
End Sub |
Partager