Function LitUneCellule(repertoire As String, fichier As String, feuille As String, i As Integer)
'Microsoft ActiveX DataObject 2.8 doit être coché
Dim cellule As String
Set cellule = "L" & i <-- Problème ici
Application.Volatile
Set cnn = New ADODB.Connection
cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & repertoire & "\" & fichier & _
";Extended Properties=""Excel 8.0;HDR=NO;"";"
Set rs = cnn.Execute("SELECT * FROM [" & feuille & "$" & cellule & ":" & cellule & "]")
LitUneCellule = rs(0)
rs.Close
cnn.Close
Set rs = Nothing
Set cnn = Nothing
End Function
Sub Lit()
Cells(1, 9) = LitUneCellule("C:/", "UNDUE_VAT_REPORT_TABLE_Macro.xlsx", "Zuzana Bugarova", 1)
End Sub