Sub MiseEnPlace(Sh As Worksheet, Rech$, Table$, F1$, F2$, F3$)
Dim I%, Deb%, Fin%, Lg&, Plage As Range, Cel As Range
Dim Lr As ListRow, Trv As Boolean
Lg = Sh.Range("C" & Rows.Count).End(xlUp).Row
If Lg = 16 Then Exit Sub
For I = 4 To 316 Step 6
If Sh.Cells(14, I) = "S" & ActiveSheet.Name Then Deb = I: Fin = I + 5: Exit For
Next I
If Deb = 0 Or Fin = 0 Then Exit Sub
Application.ScreenUpdating = False
Set Plage = Sh.Range(Sh.Cells(17, Deb), Sh.Cells(Lg, Fin))
For Each Cel In Plage
If Cel.Column = Deb Then
If Verif(Sh.Range(Sh.Cells(Cel.Row, Deb), Sh.Cells(Cel.Row, Fin)), Rech) = True Then
Set Lr = Range(Table).ListObject.ListRows.Add
Lr.Range.Interior.Color = 16777215
Lr.Range.ClearComments
Lr.Range(1) = Sh.Range("C" & Cel.Row).Text
Lr.Range(1).Interior.Color = Couleur(Sh.Range("C" & Cel.Row))
Trv = True
End If
End If
Select Case Cel.Text
Case F1, F2, F3
Case Else
If Trv = True Then
With Lr.Range(Cel.Column - Deb + 2)
.Value = Cel.Text
.Interior.Color = Couleur(Sh.Range(Cel.Address), 1)
If Not Cel.Comment Is Nothing Then
.AddComment
.Comment.Text Cel.Comment.Text
End If
End With
End If
End Select
If Cel.Column = Fin Then Trv = False
Next Cel
Application.ScreenUpdating = True
End Sub