+ Reply to Thread
Results 1 to 5 of 5

Cleaning up an imported txt file

  1. #1
    Registered User
    Join Date
    07-12-2007
    Posts
    24

    Cleaning up an imported txt file

    I have a txt file that I want to import into excel. The problem is the file comes thru with headers, footers, page numbers etc. The end result is to have the data in a nice clean list showing only the "V.I.N." column and the "ship dte" column. The code below imports the data and deletes the unwanted columns. As you can see from the report there is 2 columns of VIN and ship dte on the report

    HTML Code: 
    The next step is were I'm lost. How do I get columns C and D to move under A and B and then get rid of the excess page numbers, headers etc.
    A few points (in case it helps)
    -The VIN number will always be 17 digits long.
    -The report length will vary each week the report is run.
    The end result would be 2 have all the VIN's in column A and the ship dte in column B.

    Thanks
    Rob
    Attached Files Attached Files
    Last edited by yzer19; 11-16-2007 at 12:27 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Those looked like live VIN's in your attachment, so I spiked the attachment.
    If you repost the attachment with pseudo-data it will give internet search robots less to chew on.
    If you post a copy of what you want your Excel sheet to look like, it would help the folks here supply an answer to your question.

  3. #3
    Registered User
    Join Date
    07-12-2007
    Posts
    24
    Thanks for the tip. I scrambled the VINS on the original post but I have changed this now to be xxxxxxxxxx. How can I attach a excel file, do I need to zip it?

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Thanks.
    Yes, Excel files need to be zipped. Also, if you are using 2007, saving and posting your file in an earlier format increases the number of people who can look at the fie.

  5. #5
    Registered User
    Join Date
    07-12-2007
    Posts
    24
    Attached is the spreadsheet that contains the example file. Hopefully somebody can help me with the code.
    Thanks
    Attached Files Attached Files

+ 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