DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Dis_Veri()
Dim Cn As Object, Rs As Object
Set Cn = CreateObject("Adodb.Connection")
Cn.Open _
"Driver={Microsoft Excel Driver (*.xls)};dbq=" & _
ThisWorkbook.Path & "\veri alınan dosya.xls"
Set Rs = Cn.Execute( _
"select * from [sheet1$]")
Cells.ClearContents
[a2].CopyFromRecordset Rs
Rs.Close
Cn.Close
Set Rs = Nothing
Set Cn = Nothing
End Sub