+ Reply to Thread
Results 1 to 3 of 3

Use a Macro to pull all information from a txt file into a single column

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Use a Macro to pull all information from a txt file into a single column

    Hello Everyone and thank you in advance to those offering assistance.

    I have a process I can’t seem to get figured out and I’m hoping someone can assist. I need to pull information from a txt file into a single column using a macro.

    Setup: I have 61 units that send a report every month that I want to extract information from. I have created a folder for each month inside a file named for the report. The report from each unit for each month will be named identically: For instance, Alpha Company’s report will be named WRCRAA_AWAME130 for every month; it will just be saved in the respective month’s folder. I want to be able to create the list of units on a tab by their code (the WRCRAA characters in the example) and have the macro look to that list and then open the respective file. In the end Tab 1 will be running VLOOKUP to find information about specific items based on the serial number that is extracted from the txt files.

    I’ve been able to write the macro so that it copies the entire txt file but when it pastes it into Excel it pastes into multiple columns and I need it all in the same column. If I import the text using the Data>>”From Text” process and eliminating the break lines it works but I do not know how to use this process using the list of units created on the separate tab.

    I tried to attach the practice spreadsheet I am working on but I keep getting errors so I will have to forgo this. Again, thanks to anyone willing to lend a hand.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Use a Macro to pull all information from a txt file into a single column

    please upload files on a share site then paste the link here
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Use a Macro to pull all information from a txt file into a single column

    I have placed the files at the following link:

    https://skydrive.live.com/redir?resi...MtRWEHE1WWh-Dc

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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