Function test()
Dim Base As Object, Requete As Object, Tablo
Dim Classeur As String, Feuille As String, Sql_Driver As String
Classeur = "D:\Users\xxxx\Downloads\Bill73Base.xlsx"
Feuille = "Feuil1"
Sql_Driver = "Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};" & _
"DBQ=" & Classeur & ";READONLY=True"
Set Base = CreateObject("ADODB.Connection")
Base.Open Sql_Driver
Set Requete = CreateObject("ADODB.Recordset")
Requete.ActiveConnection = Base
Requete.Open _
"Select Nom From [" & Feuille & "$] Order By Nom;"
Tablo = WorksheetFunction.Transpose(WorksheetFunction.Transpose(Requete.GetRows))
Requete.Close
Set Requete = Nothing
Base.Close
Set Base = Nothing
End Function