+ Reply to Thread
Results 1 to 5 of 5

Automate the database connection in Excel

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    6

    Automate the database connection in Excel

    Is their a way to automate the database connection in Microsoft Excel, instead of clicking Data > From Other Sources > ODBC > etc... ? I have no knowledge of VB so if you can provide a link or youtube please do so.

  2. #2
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Automate the database connection in Excel

    Hi -

    Yes, you can use ADO or DAO whichever you prefer. Just google it.

    Regards,
    event

  3. #3
    Registered User
    Join Date
    10-30-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Automate the database connection in Excel

    I tried searching ADO which will connect with ODBC, but the codes i saw didn't have the username, database name, password etc. how do i add that?

    this is the link i got.
    http://www.java2s.com/Code/VBA-Excel...eddatabase.htm


    Quote Originally Posted by event21 View Post
    Hi -

    Yes, you can use ADO or DAO whichever you prefer. Just google it.

    Regards,
    event

  4. #4
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Automate the database connection in Excel

    Hi -

    What database are you using?

    These are all you need.

    http://www.connectionstrings.com/

    Regards,
    event

  5. #5
    Registered User
    Join Date
    10-30-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Automate the database connection in Excel

    Solved this. Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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