Sub ListeOnglets()
Dim WS As Worksheet
Dim i As Integer, j As Integer, k As Integer, DerLigne As Integer, DerLigne2 As Integer
Dim NomClient As String
Dim CellulClient As Range
Sheets("HIT PARADE CLIENTS 2023_2024").Activate
With ActiveSheet
DerLigne = .Cells(Rows.Count, 1).End(xlUp).Row '
For i = 2 To DerLigne
NomClient = .Cells(i, 1)
col = 6 ' F : 1ère colonne où on écrit la feuille où on a trouvé le client
For Each WS In ThisWorkbook.Worksheets
If WS.Name <> ActiveSheet.Name Then
DerLigne2 = WS.Cells(Rows.Count, 1).End(xlUp).Row '
Set CellulClient = WS.Range("A2:A" & DerLigne2).Find(NomClient)
If Not CellulClient Is Nothing Then
'Renvoie le nom de chaque feuille pour chaque client
.Cells(i, col) = WS.Name
col = col + 1
End If
End If
Next WS
Next i
End With
End Sub