+ Reply to Thread
Results 1 to 3 of 3

Importing ASCII file

  1. #1
    Registered User
    Join Date
    12-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Importing ASCII file

    Here is the code I have that works great, If I create my ASCII file using only the correct variables in the correct order
    Please Login or Register  to view this content.
    However, what I would like to know is if there is a way to import only selected column from the ASCII file....? For example lets say the ASCII would have data in 15 columns (A:O) is there I way I can reference some cells or a user form to only take the data from columns 1,3,6,8, and 13 (or whatever ones I specify) and have only those columns come in just like the above macro?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Importing ASCII file

    Why don't you import all the columns, and then delete the ones you don't want at the end of the macro?

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-12-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Importing ASCII file

    I am not importing into a new sheet, I need this data to come into the worksheet in the same place every time because I have formulas that reference these columns to find average rates, pressures, densities, elapsed times etc... The problem is the raw file often has more data than I need and is out of order so have to go back into my job monitoring program and re-export the data in the order I need it in and I was hoping to be able to avoid that.

    BUT, I guess I could rewrite the macro to import it into a new sheet and then search for specific rows to copy and paste into my current template then delete the new sheet....

+ 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