Private Sub Worksheet_Activate()
Dim lig&
Application.ScreenUpdating = False
Cells.Delete 'RAZ
With Sheets("Projet1").[A1].CurrentRegion
.Cells(2, .Columns.Count + 2) = "=ISNUMBER(SEARCH(""MJE"",L2))*(Q2<100)"
.AdvancedFilter xlFilterCopy, .Cells(1, .Columns.Count + 2).Resize(2), [A1] 'filtre avancé
.Cells(2, .Columns.Count + 2) = ""
End With
lig = UsedRange.Rows.Count + 1
With Sheets("Projet2").[A1].CurrentRegion
.Cells(2, .Columns.Count + 2) = "=ISNUMBER(SEARCH(""MJE"",L2))*(Q2<100)"
.AdvancedFilter xlFilterCopy, .Cells(1, .Columns.Count + 2).Resize(2), Range("A" & lig) 'filtre avancé
.Cells(2, .Columns.Count + 2) = ""
End With
Rows(lig).Delete 'supprime la ligne d'en-têtes
Columns.AutoFit 'ajuste les largeurs
Columns("A:E").Hidden = True 'masque les colonnes
Rows(1).Font.ColorIndex = xlAutomatic 'police
End Sub