Public ArrayOnglet(1000), N
Sub MesFeuilles()
Dim Fichiers As Variant, i As Integer, wb As Workbook
Dim Wm As String, Sh
Wm = ThisWorkbook.Name
Fichiers = Application.GetOpenFilename("Fichiers Excel (*.xlsx), *.xlsx", , , , True)
If IsArray(Fichiers) Then
For i = 1 To UBound(Fichiers)
Set wb = Workbooks.Open(Fichiers(i))
If wb.Sheets.Count = 1 Then
'Récupérer wb.Activesheet.Name dans Array
ArrayOnglet(N) = wb.Sheets(1).Name
N = N + 1
End If
wb.Close
Set wb = Nothing
Next i
End If
End Sub