+ Reply to Thread
Results 1 to 2 of 2

ODBC setup, SQL server & Excel VBA

  1. #1
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    ODBC setup, SQL server & Excel VBA

    Hi,

    Can someone help me digest what the following code does? I'm new to SQL & Excel integration.

    Please Login or Register  to view this content.
    This is an example taken from the Internet. Is this step always needed?

    Thanks

  2. #2
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Cool Re: ODBC setup, SQL server & Excel VBA

    Hi

    Try the below code to connect your sql database via excel . I use the below code to get the data from database.

    FOR THIS CODE TO WORK
    In VBE you need to go Tools References and check Microsoft Active X Data Objects 2

    Please Login or Register  to view this content.
    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1