+ Reply to Thread
Results 1 to 4 of 4

import selected lines from a text file

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    Edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    11

    import selected lines from a text file

    Hi

    I want to import say lines 10,12,13,14,25,26,27,28 from a text file of total 300 lines to excel, with split delimiter being :
    Also I want to ignore the spaces.
    Can anyone help me please.
    Thanks in advance.

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

    Re: import selected lines from a text file

    Maybe something like below? I'm not sure what you mean about split delimiter, maybe use text to columns after importing the data?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: import selected lines from a text file

    You can read the text file like this:

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: import selected lines from a text file

    Is : a line delimiter or field delimiter?
    If posting code please use code tags, see here.

+ 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] MACRO: Store name of selected file as string w/ import data file dialog box
    By AnnieMcken in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2013, 02:13 PM
  2. [SOLVED] Import user selected columns from a text file
    By aarho in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-11-2012, 08:28 PM
  3. Import text with new lines
    By bradm in forum Excel General
    Replies: 2
    Last Post: 08-15-2010, 08:56 PM
  4. Import Certain Lines from a Large Text File
    By blueperfume300 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-07-2007, 09:07 AM
  5. Import Text File Into A Spreadsheet with over 65,000 lines
    By Ecohouse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2006, 07:45 PM

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