+ Reply to Thread
Results 1 to 1 of 1

Change Connection File for a Data Connection

  1. #1
    Forum Contributor
    Join Date
    05-24-2014
    MS-Off Ver
    Microsoft Office 2013
    Posts
    113

    Change Connection File for a Data Connection

    At work I have an API for a lot of different clients. While analyzing the data for these clients I have to switch my API on a tab many times during the day. Is there a code in VBA that I could use to switch the file I get it from?

    For a little background of how I do this normally, in the data tab I click on "From Text" then I paste in the API for the client. I then select that my data has headers and depending on the file I can have my import start on line 1 or 13. The API leads to a CSV so the delimiter is a comma. If anyone has a good idea on how to switch the API file with VBA then it would be much appreciated.

    If this is possible please let me know.
    Last edited by manofcheese; 06-30-2015 at 06:54 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 05-15-2015, 04:12 PM
  2. Excel External Connection Dropping Password from Connection String?
    By mar0isa in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-06-2015, 10:35 AM
  3. Activex connection problems, connection jumps if a second Excel file is opened.
    By rdl201 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 09:45 AM
  4. Excel VBA makes ODBC connection to Access-How do you close the connection?
    By MrHockey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2010, 06:29 PM
  5. Excel 2007 data connection not using connection file
    By algilstrap in forum Excel General
    Replies: 0
    Last Post: 06-09-2009, 03:01 PM

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