I tried that also and i got the message
"An expression you entered is the wrong data type for one of the arguments"
The code is:
Dim rsRecs As ADOdb.Recordset
Set rsRecs = New ADOdb.Recordset
rsRecs.Open "SELECT Kartela.* FROM Kartela", CurrentProject.Connection, adOpenStatic
DoCmd.TransferSpreadsheet acExport, , rsRecs, "V:\Database\Temp.xls", True