+ Reply to Thread
Results 1 to 4 of 4

clean up a text file with code

  1. #1
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    clean up a text file with code

    Ive attached 2 text files. currently I get the data as scrambled and id like to clean it up. so if you look at the clean version, each tool is on a different line.

    I have 100 +++ of these so id like a code that will do it for me! thank you
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: clean up a text file with code

    Hi Jenkins27

    This is essentially a recorded Macro. Place both Files in the same Folder. Open Code book. CTRL + x will fire the Code; you'll be prompted to select a Text File to import.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: clean up a text file with code

    Thank you! but I was trying to un-scrambled it and save it in the same text file. this does work but it puts it In the excel sheet.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: clean up a text file with code

    Hi Jenkins27

    Place both Files in the same Folder. Open Code1 book. CTRL + x will fire the Code; you'll be prompted to select a Text File to import. The Text File will be saved with the Original Name.

    Please Login or Register  to view this content.
    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)

Similar Threads

  1. Have VBA code that needs performed in multiple sheets. Also help being sure code is clean
    By baby_kay_2003 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2014, 10:57 PM
  2. Loop through Code that copies the content of a text file to another text file
    By michiel soede in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-31-2013, 01:34 PM
  3. How to Clean an Imported Text file with VBA
    By zaska in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-17-2013, 07:07 AM
  4. [SOLVED] VBA Code to optimize and clean data- clean out numerical/ or symbol
    By tracylsr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2012, 04:21 PM
  5. Is it possible to clean up and import such a raw text file as this to excel?
    By davidsky1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2012, 10:54 PM
  6. How do I clean a .csv mailing list file against a .txt file?
    By RedRhino in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2010, 05:38 PM
  7. Clean up strings before creating a text file
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-07-2005, 02:05 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