+ Reply to Thread
Results 1 to 5 of 5

IMPORTING TEXT FILES TO EXCEL - Multiple Multi-line text files, each in a new column

  1. #1
    Registered User
    Join Date
    12-23-2014
    Location
    LA CA
    MS-Off Ver
    2010
    Posts
    2

    Question IMPORTING TEXT FILES TO EXCEL - Multiple Multi-line text files, each in a new column

    Hello all,

    I have multiple multi-line text files that I am trying to import into one sheet. I would like each text file to have its own column.

    Thus far, I have successfully pulled them all in to one column using the code that user patel45 posted here:

    Please Login or Register  to view this content.
    Would anyone be able to help me figure out what to add to this code to make each text file have its own column?

    Thank you in advance! (And thank you to patel45 for at least getting me started in the right direction.)
    Last edited by wrenchfry; 12-23-2014 at 05:49 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,975

    Re: IMPORTING TEXT FILES TO EXCEL - Multiple Multi-line text files, each in a new column

    1. Move drow =2 to the line after Do While and replace the original drow to dcol = 1
    2. Just before the loop add in dcol = dcol + 1
    3. Replace the ,1 in the Cells() statement to dcol
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: IMPORTING TEXT FILES TO EXCEL - Multiple Multi-line text files, each in a new column

    Man, I gotta get quicker at this VBA stuff. I start to work on something and someone beats me to it! Not that I was anywhere near finishing, but, looking at pj...'s code, I was on the right path
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    20,419

    Re: IMPORTING TEXT FILES TO EXCEL - Multiple Multi-line text files, each in a new column

    I would do like this
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-23-2014
    Location
    LA CA
    MS-Off Ver
    2010
    Posts
    2

    Thumbs up Re: IMPORTING TEXT FILES TO EXCEL - Multiple Multi-line text files, each in a new column

    Solved -- in 2.5 hours! Worked the first time. Thank you pjwhitfield!

    (and thank you gmr4evr1 and jindon for giving it a shot, and thank you again patel45 for the kickstart)

    For anyone else who comes across this thread in the future, here is pjwhitfield's tested and functional update to patel45's code for Importing Multiple Multi-line text files, each in a new column:

    Please Login or Register  to view this content.

+ 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. IMPORTING TEXT FILES TO EXCELL - Multiple Multi line text files
    By Toxicca in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-12-2014, 09:56 AM
  2. [SOLVED] Last line of multiple text files matching first column numbers only
    By c_schoonraad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2012, 03:07 PM
  3. importing multiple text files into one worksheet and one column
    By hluk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-16-2010, 10:03 PM
  4. Importing multiple text files.
    By Jdrewrd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2008, 07:49 AM
  5. Importing from multiple text files
    By tmort in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2005, 09:50 AM

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