|
Author: Jenny Nguyen
|
|
While I was try trying to query some data from SQL Server 2005 in Excel VBA Macro I get an error: --------------------------- ADODB.Connection User-defined type not defined To fix this problem I just need to add a reference to the project. Here's how: 1. Click on Tools. 2. Click on References.... 3. Ensure you have Microsoft ActiveX Data Objects selected.
Now try to run your Macro again and you should not encouter the error.
|
