+ Reply to Thread
Results 1 to 3 of 3

Avoiding Data Duplication using the Workbook Data Connections

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    9

    Question Avoiding Data Duplication using the Workbook Data Connections

    Hello to everyone,

    I wrote a code, which allows me to automatically import the Text (.txt) files (that are located in the same folder) on different worksheets (according to a certain criteria).

    But I have a problem with the duplication of data: I would like to import one text file only once. In this respect, I decided to check all the existing workbook [data] connections and if it would contain the file name, that I am going to import, exit the code.

    I am new to VBA so I am not quite sure how to do this. It should be something like that:

    Please Login or Register  to view this content.
    This code works fine when there is only one workbook connection. But as far as there are a lot of connections (and the code would execute every time it would not find a coincidence between the Connection Name and and a File Name), I would like to check all the connections and compare them to the File that is being imported and in case of a single coincidence, exit the Sub.

    Thank you very much in advance for your kind support.

  2. #2
    Registered User
    Join Date
    08-23-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Avoiding Data Duplication using the Workbook Data Connections

    Could someone please help? Any ideas would be very welcome and appreciated!
    Last edited by Varlock-01; 08-30-2012 at 04:47 AM.

  3. #3
    Registered User
    Join Date
    08-23-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Avoiding Data Duplication using the Workbook Data Connections

    Could someone please help? Any ideas would be very welcome and appreciated.

+ 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