Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I am trying to import data from a Stored procedure which has a Select Statement in it into Excel. I could also exec the select Statement out of Excel (VBA), that would be ok for me also. I am struggling in setting up the Connection and the Recordset Objects and then call the CopyfromRecordset method. For example: I have in my code: Dim cnPubs As ADODB.Connection Set cnPubs = New ADODB.Connection and I get the following Error while running the Macro: Compile Error: User-Defined type not defined I have to admit that I am not that good in ADODB Connection building and Recordset operations... I would appreciate your help big time. Thanks, Martin |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data return from SQL Stored procedure... | Excel Discussion (Misc queries) | |||
Extract data from Stored procedure | Excel Discussion (Misc queries) | |||
How do I access data stored in a SQL server for vlookup function? | Excel Worksheet Functions | |||
How can I grab data from a SQL Server stored procedure | Excel Programming | |||
Execute stored procedure using DAO | Excel Programming |