' ***-------------------------------------------------------------***
Worksheets("__ 01 __").Copy After:=Sheets(Worksheets.Count)
Set MySheet1 = ActiveSheet
With MySheet1
.Name = "01_ " & Worksheets("index").Range("F7")
End With
Dim a$, b&, c&
Dim Secteur As String
Secteur = Sheets("index").Range("K2")
c = Cells(3000, 8).Row
For b = c To 4 Step -1
a = Cells(b, 8).Value
If Not (Cells(b, 8) Like (Secteur)) Then Rows(b).Delete
Next
MySheet1.Tab.ColorIndex = 1
' ***-------------------------------------------------------------***
Worksheets("__ 02 __").Copy After:=Sheets(Worksheets.Count)
Set MySheet2 = ActiveSheet
With MySheet2
.Name = "02_ " & Worksheets("index").Range("F7")
End With
Dim d$, e&, f&
f = Cells(3000, 8).Row
For e = f To 4 Step -1
d = Cells(e, 8).Value
If Not (Cells(e, 8) Like (Secteur)) Then Rows(e).Delete
Next
MySheet2.Tab.ColorIndex = 1
' ***-------------------------------------------------------------***
Worksheets("__ 03 __").Copy After:=Sheets(Worksheets.Count)
Set MySheet3 = ActiveSheet
With MySheet3
.Name = "03_ " & Worksheets("index").Range("F7")
End With
Dim g$, h&, i&
i = Cells(3000, 8).Row
For h = i To 4 Step -1
g = Cells(h, 8).Value
If Not (Cells(h, 8) Like (Secteur)) Then Rows(h).Delete
Next
MySheet3.Tab.ColorIndex = 1
' ***-------------------------------------------------------------***
Worksheets("__ 04 __").Copy After:=Sheets(Worksheets.Count)
Set MySheet4 = ActiveSheet
With MySheet4
.Name = "04_ " & Worksheets("index").Range("F7")
End With
Dim m$, n&, o&
o = Cells(3000, 8).Row
For n = o To 4 Step -1
m = Cells(n, 8).Value
If Not (Cells(n, 8) Like (Secteur)) Then Rows(n).Delete
Next