+ Reply to Thread
Results 1 to 11 of 11

IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    42

    IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    Hi,

    I'm trying to create a macro that will import multiple multi line text files.

    Am completely stumped.

    I have tried another Macro from this site however that imports the each text file into one cell, but i need each line to be in a new cell and each file to be in the same sheet.

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

    Re: IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    attach please a sample text file
    are the text file in the same folder ? you have to import all ?
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    04-29-2013
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    Hi,

    Yes they are all in the same folder and all need to be imported.

    I have attached a sample text file.
    Attached Files Attached Files

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

    Re: IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    Please Login or Register  to view this content.
    Last edited by patel45; 04-30-2013 at 08:22 AM.

  5. #5
    Registered User
    Join Date
    04-29-2013
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    Thanks for this but is there any chance you can put notes in so i know what i need to change to what?

    I am only very basic minded with macros.

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

    Re: IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    You can only change folderPath and drow, see added comments

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    or
    Please Login or Register  to view this content.



  8. #8
    Registered User
    Join Date
    04-29-2013
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    This doesnt seem to do anything when i run it?

  9. #9
    Registered User
    Join Date
    04-29-2013
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    This is what i had but this only pulls in text file on a single line per file where what i want is each line in the file to be on a new line in the spreadsheet, and all files to be pulled into the same spreadsheet.

    Please Login or Register  to view this content.
    Last edited by arlu1201; 02-12-2014 at 10:20 AM.

  10. #10
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    of course:

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    07-24-2013
    Location
    New Mexico
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files

    This code works well, but how can it be altered to insert each file into a different column?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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