+ Reply to Thread
Results 1 to 3 of 3

Converting from .txt to .csv (Formatting Issue)....

  1. #1
    Registered User
    Join Date
    11-26-2007
    Posts
    2

    Converting from .txt to .csv (Formatting Issue)....

    Hello,

    Is it possible to convert a .txt file containing multi-words separated by commas into a .csv file with each word on a row?? I am using Excel 2002. See Example Below.

    (I want to go from this) .txt
    man, woman, computer, screen, speaker

    (to this) .csv
    man
    woman
    computer
    screen
    speaker

    And thanks for any help in advance,
    Parsec
    Last edited by VBA Noob; 11-26-2007 at 10:03 AM.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hello

    The following will do that:

    Please Login or Register  to view this content.
    You need to change the file name of the text file that is opened and the csv file that is created. This code goes into a standard module in the VBE (Alt+F11 to open up the VBE and navigate to your workbook in the top left Projects window, right-clik on it and select Insert>Module, paste code into the white area to the right that will open up). Run the macro from Excel eg Tools>Macro>Macros and select it from the list and hit Run.

    Richard
    Last edited by Richard Schollar; 11-26-2007 at 12:24 PM.

  3. #3
    Registered User
    Join Date
    11-26-2007
    Posts
    2

    Talking

    PURE GENIUS!!!! THANKS A LOT!!!

    Parsec
    Last edited by Parsec1982; 11-26-2007 at 08:55 PM.

+ 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