+ Reply to Thread
Results 1 to 4 of 4

VBA: Delete line from multiple text file in multiple child sub folder

  1. #1
    Registered User
    Join Date
    12-27-2018
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    39

    VBA: Delete line from multiple text file in multiple child sub folder

    VBA: Delete line from multiple text file in multiple child sub folder inside "myfolder1" if a given text "word1, word2, word3,....word10" found.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,143

    Re: VBA: Delete line from multiple text file in multiple child sub folder

    And ... what are your problem and your question ?
    And ... give us an example of such files.

  3. #3
    Registered User
    Join Date
    12-27-2018
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    39

    Re: VBA: Delete line from multiple text file in multiple child sub folder

    I have multiple text files in mulple child folders. Now if in text files Text
    word1: Spam
    word2: Not Required
    word3: Some time1#

    is there then delete the line in each text file.


    An example text file apper as:
    ----------------------------------------------------------
    Text file name: profit-loss.txt

    Line1:
    Line2: Where are you ?
    Line3:
    Line4: excelfoum is great1#*8
    Line5: Spam



    Then delete the line with word Spam

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,143

    Re: VBA: Delete line from multiple text file in multiple child sub folder

    Try:
    Please Login or Register  to view this content.
    Macro call, e.g.:
    Please Login or Register  to view this content.

+ 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. Multiple CSV in Folder, Delete Columns based on Header Name for Every File
    By ramkrau in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2019, 01:16 PM
  2. [SOLVED] Renaming Multiple .Txt Files in a Folder to Specific Contents of First Line of Each File
    By bruppert in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-02-2019, 05:36 PM
  3. VBA: unzip multiple file in a folder to another folder
    By maria.blue44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-01-2015, 05:16 AM
  4. Import multiple text files delete rows between lines with File Name
    By coronakyk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2014, 09:53 PM
  5. Replies: 3
    Last Post: 12-12-2012, 04:01 PM
  6. export excel to text file; multiple line cells; no quotes
    By redbu11 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-11-2012, 01:57 AM
  7. Replies: 2
    Last Post: 10-23-2011, 06:55 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