+ Reply to Thread
Results 1 to 6 of 6

Macro that imports >65000 lines from Text file problem

  1. #1
    Forum Contributor
    Join Date
    12-05-2006
    Location
    London
    MS-Off Ver
    Excel 365 (Version 2008) [work] & 365 [home]
    Posts
    182

    Macro that imports >65000 lines from Text file problem

    Morning all,

    I found this macro here: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190032&id=190032&SD=MSKB>Q190032

    Now I am using Excel 2003 and it always fails at the BLUE text. Can someone tell me why and how to over come it?

    I also tried replacing the ("TEXT") with ("F:\path\filename.txt") and still it fails. I need a code like this as the txt file I have is just short of 140,000 lines long.

    Thanks in advance.

    Please Login or Register  to view this content.
    A mad football researcher and Statistician - ok just mad really !

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Macro that imports >65000 lines from Text file problem

    Try this instead:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-05-2006
    Location
    London
    MS-Off Ver
    Excel 365 (Version 2008) [work] & 365 [home]
    Posts
    182

    Re: Macro that imports >65000 lines from Text file problem

    Thanks,

    Although this imports the file it does not break it into tabbed columns.

    Is there a way to do this?

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Macro that imports >65000 lines from Text file problem

    Sorry I didn't see anything in the original code that would do that, thought you just wanted it all in column A. Once it has imported the text file select column A, then use the texttocolumns tool with delimited and tab.

  5. #5
    Forum Contributor
    Join Date
    12-05-2006
    Location
    London
    MS-Off Ver
    Excel 365 (Version 2008) [work] & 365 [home]
    Posts
    182

    Re: Macro that imports >65000 lines from Text file problem

    Thanks mate,

    I have now recorded a macro that columnises the data and works just perfectly.

  6. #6
    Forum Contributor
    Join Date
    12-05-2006
    Location
    London
    MS-Off Ver
    Excel 365 (Version 2008) [work] & 365 [home]
    Posts
    182

    Re: Macro that imports >65000 lines from Text file problem

    Duplicated post deleted.
    Last edited by Lensmeister; 07-30-2013 at 04:55 AM.

+ 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. [SOLVED] Need Help cleaning up Macro that imports text file and deletes unnecessary rows
    By ppilot in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-16-2013, 10:44 PM
  2. Replies: 3
    Last Post: 06-22-2006, 11:50 AM
  3. Replies: 0
    Last Post: 06-29-2005, 03:50 PM
  4. Replies: 1
    Last Post: 04-01-2005, 01:06 AM
  5. pasting creates 65000 lines
    By vegv6 in forum Excel General
    Replies: 1
    Last Post: 03-03-2005, 08:06 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