+ Reply to Thread
Results 1 to 3 of 3

Delete row if file exists

  1. #1
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    22

    Delete row if file exists

    hi

    I have a list of numbers and I have corresponding text files which I named by using these numbers as reference

    is there a possible macro to delete those rows which have corresponding text files by checking in a specific folder if that file name exists

    example attached
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-19-2014
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    2010
    Posts
    45

    Re: Delete row if file exists

    Try this, making sure you change iPath as commented below. Also make sure to change the file extension in accordance with the file types.
    Remove duplicates manually from Column A, you have tons of blank cells between your cells that do contain data that'll prolong the loop to LR:
    Please Login or Register  to view this content.
    Last edited by Jamie.Reis; 08-22-2014 at 03:03 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Delete row if file exists

    Edit the path to the text files C:\ and run the below code on the sheet containing the references.

    Please Login or Register  to view this content.


    Shelton A.
    If Helpful, Add Reputaion!

+ 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. Delete the chart if already exists
    By krish T in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2010, 03:35 PM
  2. if a worksheet exists delete it
    By pavlos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2010, 03:15 AM
  3. Delete worksheet IF it exists
    By treva26 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2007, 10:01 PM
  4. If worksheet exists delete
    By cereldine in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2006, 12:30 PM
  5. [SOLVED] Delete file if file exists.
    By Michael Smith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2005, 10:05 AM

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