LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Scanning Text files for specific words

I have a problem with trying to find specific text within a set of txt
files. I have a directory with 15 generic text files in it. I am
supplied with a very unique number that I have to match to one of the
text files, however I don't know which one of the 15 it may be. I'm
not referring to the filename.txt file, but a string of text within
the text file. The filename.txt file contains my unique number inside
it.

Is there an easy VBA way to scan the 15 txt files and open the one I
want based on the number I'm given, open the text file to pull the
data from it into a spreadsheet?

Once I get this figured out - I have to do the exact same thing to a
spreadsheet file. The same unique number I'm give is also associated
with a spreadsheet in a directory (along with many others). I'll
need to open that spreadsheet and extract the data.

The commonality is the unique number inside the files. Any help or
pointers would be appreciated.

-Tony
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
borders between 2 specific words pedy Excel Discussion (Misc queries) 0 July 2nd 09 03:09 PM
How to search Excel files based on a specific text string in VBA c Bob Excel Discussion (Misc queries) 1 March 6th 09 05:09 AM
Using 'If' refer to specific words in a cell containing text Casino Guy Excel Worksheet Functions 5 August 10th 05 02:02 PM
counting specific words jen Excel Worksheet Functions 2 June 25th 05 12:46 AM
Highlight a row if a specific cell is specific numbers/words sea0221 Excel Worksheet Functions 2 March 9th 05 12:06 AM


All times are GMT +1. The time now is 03:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"