ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is it possible write a self-defined function in excel that connect to SQL server to get data? (https://www.excelbanter.com/excel-programming/282323-possible-write-self-defined-function-excel-connect-sql-server-get-data.html)

tc

Is it possible write a self-defined function in excel that connect to SQL server to get data?
 
I have tried to write ADODB connection in VBA Editor...
but it seems that it can recognize those key work in ADODB...

Any good reference / link about this suggest?
thanks.



Tom Ogilvy

Is it possible write a self-defined function in excel that connect to SQL server to get data?
 
in the VBE you need to go to Tools=References and select the appropriate
ADO library that defines ADODB.

--
Regards,
Tom Ogilvy

"tc" wrote in message
...
I have tried to write ADODB connection in VBA Editor...
but it seems that it can recognize those key work in ADODB...

Any good reference / link about this suggest?
thanks.






All times are GMT +1. The time now is 07:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com