Hi all, would anyone be able to perhaps point me in the right direction.
I run current macros which pull specific data from a shared drive. I want to see if I can now pull the same data from ftp server(I have address,user id,pw) Is it possible to incorporate this in the code I currently have? Any other options?
Any help would be greatly appreciated
Thanks so much
I run current macros which pull specific data from a shared drive. I want to see if I can now pull the same data from ftp server(I have address,user id,pw) Is it possible to incorporate this in the code I currently have? Any other options?
Any help would be greatly appreciated
Thanks so much
Code:
Dim strConn As String
Dim objConn As Object
Dim rst As Object
Set objConn = CreateObject("ADODB.Connection")
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\data.xls;" & _
"Extended Properties=""Excel 8.0;HDR=YES"""
objConn.Open strConn
Set rst = CreateObject("ADODB.Recordset")
rst.Open "SELECT * FROM [data$] WHERE [level_id] = '2';", objConn
Sheets("Main").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents