Hi all,
I just want to export data from closed workbook to active workbook via ADO connection. can anyone help on this?
Hi all,
I just want to export data from closed workbook to active workbook via ADO connection. can anyone help on this?
It takes VBA coding but here is a good read to assist
http://support.microsoft.com/default...b;en-us;278973
hope that helps
Given link doesn't works.
Try this
Dim strSQL As String, conStr as String
Dim cnn As New ADODB.Connection
Dim rs As New ADODB.Recordset
conStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source='" & path & "';" & _
"Extended Properties=""Excel 12.0;HDR=YES;IMEX=1;"";"
strSQL = "SELECT [Field1], [Field2] FROM [Worksheet$] WHERE [Thing1] > 1"
cnn.open conStr
rs.Open query, cnn, adOpenStatic, adLockOptimistic, adCmdText
Hi, Naresh27,
Copy a range from closed workbooks (ADO) with download of a file.
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
Yeah that's working.
Also, how to Paste some range of cells to Closed workbook. can anyone?
Hi, Naresh27,
you may use ADO (but that will create a new workbook as far as I know). The only way I know of is to open the workbook, paste, close with changes.
Ciao,
Holger
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks