Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
ADO or DAO, or odbc query from xls sheet, to xl sheet?
How can I programatically execude an SQL query against
sheet(1).range() and populate the result set into sheet (2). I am currently using the "Import External Data" "Database Query" method, but I don't like it, as as soon as you start to mess with the result set it wrecks the range, and the query is lost. I would like to not have any named range created storing the query, I plan to manipulate the results. I would like the solution to be totally VBA code, so the query is remembered, and once the query is run, the data is just data, not a refreshable, or auto updateable range. I had done something like this years ago, but forget the sintax. I remember there was a way to code and ODBC definition, without having to cread an ODBC datasource from control pannel. I don't want users to have any dependencies, the spreadsheet should be totally self contained. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 / MS Query - editing existing query to another sheet | Excel Discussion (Misc queries) | |||
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? | Excel Discussion (Misc queries) | |||
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? | Excel Discussion (Misc queries) | |||
insert query into excell sheet to update excell sheet and pivot table | Excel Discussion (Misc queries) | |||
How to insert data into microsoft excel sheet using ODBC API | Excel Programming |