Bonsoir,
Sub Test()
Dim CliS(), n%, i%, j%
With Worksheets("Sheet1")
n = .Cells(.Rows.Count, 1).End(xlUp).Row
ReDim CliS(1 To n)
For i = 2 To n
If .Cells(i, 2) = "x" Then
j = j + 1: CliS(j) = .Cells(i, 1)
End If
Next i
End With
ReDim Preserve CliS(1 To j)
Worksheets("Sheet2").Range("A2").Resize(j).Value = WorksheetFunction.Transpose(CliS)
End Sub
Cordialement.