Sub ExportAA()
Dim Lig As Long
Dim Col As String
Dim NbrLig As Long
Dim NumLig As Long
Dim CopyRows() As Variant
Dim DestSheet As Worksheet
' Définir la feuille de destination
Set DestSheet = Sheets("AutreFeuille") ' Remplacez "AutreFeuille" par le nom de votre feuille de destination
Col = "H"
NumLig = 0
With Sheets("MATRICE")
NbrLig = .Cells(65536, Col).End(xlUp).Row
ReDim CopyRows(1 To NbrLig, 1 To .UsedRange.Columns.Count)
For Lig = 1 To NbrLig
If .Cells(Lig, Col).Value = "VILLE - Athènes" Then
NumLig = NumLig + 1
For ColNum = 1 To .UsedRange.Columns.Count
CopyRows(NumLig, ColNum) = .Cells(Lig, ColNum).Value
Next ColNum
End If
Next Lig
End With
If NumLig > 0 Then
DestSheet.Cells.Clear ' Effacer le contenu précédent dans la feuille de destination
DestSheet.Cells(1, 1).Resize(NumLig, UBound(CopyRows, 2)).Value = CopyRows
End If
End Sub