+ Reply to Thread
Results 1 to 5 of 5

Get Value In Between Strings From All Text Files In Folder

  1. #1
    Forum Contributor
    Join Date
    01-09-2011
    Location
    Nomans, Land
    MS-Off Ver
    Excel 2007
    Posts
    103

    Get Value In Between Strings From All Text Files In Folder

    Hello!
    How are we today? Fine I hope.

    I am trying to go through all text files inside a folder and extract the value found in between strings to my worksheet.
    The strings to look for are in columns, the beginning string to look for in row 1 and the ending string in row 2.
    Please find attached a sample workbook and text file. Also, I have pasted the code of what I have so far.

    Thanks in advance for taking the time and trying help

    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Get Value In Between Strings From All Text Files In Folder

    Please Login or Register  to view this content.
    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
    01-09-2011
    Location
    Nomans, Land
    MS-Off Ver
    Excel 2007
    Posts
    103

    Re: Get Value In Between Strings From All Text Files In Folder

    Genius!!!!!!!!!!!!!!!!!!!!!!!!! YES!!!!!!!!!
    Could you add just one quick thing, the filename on column A please!
    Thank you sooo much!!

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

    Re: Get Value In Between Strings From All Text Files In Folder

    You're welcome.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-09-2011
    Location
    Nomans, Land
    MS-Off Ver
    Excel 2007
    Posts
    103

    Re: Get Value In Between Strings From All Text Files In Folder

    I couldn't thank you enough. Once again, thank you! It was killing me.

+ 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: 1
    Last Post: 01-28-2019, 06:55 PM
  2. [SOLVED] Search and Replace Unique Text Strings Over Multiple Files
    By portokie in forum Excel General
    Replies: 2
    Last Post: 07-11-2016, 07:24 PM
  3. How to concatenate two strings from two different .dat based text files using VBA
    By mahendra.asapu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2015, 06:25 PM
  4. Read strings from 2 reference text files
    By scottich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2014, 11:57 AM
  5. Copy excel and text files from one folder to another folder...
    By annupojupradeep in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2014, 06:34 AM
  6. [SOLVED] VBA Code open files in folder, copy text to workbook-Next time folder opened copy only new
    By Bikeman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-02-2013, 07:59 PM
  7. import all text files in folder
    By shoshanako in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2008, 10:01 AM

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