+ Reply to Thread
Results 1 to 3 of 3

checking duplicate text files using row 1

  1. #1
    Forum Contributor
    Join Date
    10-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    221

    checking duplicate text files using row 1

    Hi can someone help with a vba macro, I have a folder called N with text files so D1.txt, D2.txt I want to copy row 1 from each text file to an excel spread sheet.
    Then check if there are any duplicates using row 1 for example we would write on excel sheet the name of the text file and the row 1 information

    D1.txt, shipping 13th Oct
    D2.txt, shipping 14th Oct
    D3.txt, shipping 13th Oct

    On the row where the D1 and D3 data is we would write "duplicate" as they have the same row 1 "shipping 13th Oct"

    D1.txt, shipping 13th Oct, duplicate
    D2.txt, shipping 14th Oct
    D3.txt, shipping 13th Oct, duplicate

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: checking duplicate text files using row 1

    Change the file path to suit.

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 03-21-2018 at 10:58 AM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    10-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    221

    Re: checking duplicate text files using row 1

    Hi Alpha Frog thanks for the reply that macro worked

+ 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. [SOLVED] Duplicate Checking within One Cell
    By punkin44 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2014, 03:03 AM
  2. Duplicate checking
    By JoshJ in forum Excel General
    Replies: 3
    Last Post: 12-09-2013, 06:46 PM
  3. Checking for duplicate lines.
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-10-2013, 08:33 AM
  4. [SOLVED] Checking duplicate codes
    By [email protected] in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-26-2013, 01:48 AM
  5. [SOLVED] Duplicate Checking
    By chris.slater in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-31-2013, 02:28 PM
  6. Reverse duplicate checking
    By SinrG202 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-05-2012, 01:17 AM
  7. Duplicate Checking
    By niladri20005 in forum Excel General
    Replies: 1
    Last Post: 07-15-2011, 02:48 PM

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