Sub getdatafromaccess()
Dim conn As ADODB.Connection
Dim str As ADODB.Recordset
Set conn = New ADODB.Connection
conn.Open "provider=microsoft.jet.oledb.12.0;data source=" & ThisWorkbook.Path & "\" & "wt.accdbersist Security Info=False"
Set str = conn.Execute("select * from a")
ActiveSheet.Range("a2").CopyFromRecordset str
End Sub