Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
pmz pmz is offline
external usenet poster
 
Posts: 4
Default using odbc in excel

Used Oracle Discoverer to extract needed data from tables
and export them to excel. Then manipulated the data in
excel using macros to give desired results and reports.
Is there any way to mechanize the process further so user
could run the whole job? Could I create a macro in the
excel workbook to use ODBC to run a query on the oracle
tables and pull the data in and then continue the
processing that is currently being done? Have never used
ODBC - if this is possible can you point me toward a
learning source for novices? I hope this makes sense and
is understandable. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default using odbc in excel

This might be a help for getting data to and from Excel and Access using
ODBC. It should be much the same for Oracle. It includes examples of using
variables in SQL queries.
http://www.bygsoftware.com/examples/sql.html

Or you can get there from the "Excel with Access Databases" section on page:
http://www.bygsoftware.com/examples/examples.htm

It demonstrates how to use SQL in Excel's VBA to:

* create a database,
* create a table and add data to it,
* select data from a table,
* delete a table,
* delete a database.

You can also download the demonstration file called "excelsql.zip".

The code is open and commented.


--

Regards
Andy Wiggins
www.BygSoftware.com
Home of "Save and BackUp",
"The Excel Auditor" and "Byg Tools for VBA"


"pmz" wrote in message
...
Used Oracle Discoverer to extract needed data from tables
and export them to excel. Then manipulated the data in
excel using macros to give desired results and reports.
Is there any way to mechanize the process further so user
could run the whole job? Could I create a macro in the
excel workbook to use ODBC to run a query on the oracle
tables and pull the data in and then continue the
processing that is currently being done? Have never used
ODBC - if this is possible can you point me toward a
learning source for novices? I hope this makes sense and
is understandable. Thanks.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export from Excel to DB2 via ODBC Mauriizo Excel Discussion (Misc queries) 0 January 18th 08 09:39 AM
How do you set the default ODBC for MS Excel to use Engineering Accountant Excel Discussion (Misc queries) 0 January 7th 08 09:01 PM
ODBC Excel 2007 Jon Kreiss Excel Discussion (Misc queries) 2 December 20th 07 06:01 PM
Q:Excel/ODBC/Login .... MSweetG222 Excel Discussion (Misc queries) 1 July 24th 05 06:37 PM
EXCEL AND ODBC AND QUERY Gary B[_3_] Excel Programming 1 August 5th 03 02:39 AM


All times are GMT +1. The time now is 06:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"