- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI'm trying to accomplish the following but this whole process is new to me:
1. Pull a list of all files in a folder into Excel (DONE)
2. Use list as a reference to open each text file in folder (all files will be text files), look for the
words "TSA", "ORP, or "DCF" on the last line of the file, and rename/move the file to the
corresponding folder. There will be multiples of each type (I'm currently held up on this)
3. Go to subfolder, then open all files of that type and combine them in Excel for manipulation (Think I can
get this done once I get here)
How do I do this using what I have so far?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: cheverePosted on 2009-11-03 at 12:09:11ID: 25732992
I've been searching through other posts and sites, and found something that I think might work. In my case, the footer always starts with the same 4 characters, so I put an if then statement in there stating that if the line = the footer characters AND matches my criteria, then make a variable state the result. I then used a loop to go through each file, take the result, and move the files accordingly.
Select allOpen in new window