+ Reply to Thread
Results 1 to 2 of 2

Open CSV file, format data and write output to a text file.

  1. #1
    BristolBloos
    Guest

    Open CSV file, format data and write output to a text file.

    Hi All,

    Through my Excel VBA i want to
    1. Open a csv file
    2. Read each row
    3. Select few fields
    4. Format them
    5. Concatenate them as a single text separated by "#"

    and

    6. Finally write the output into a text file


    I know the name and location of the input csv file and therefore I
    don't want the user to open it manually. Rather the file should be
    opened automatically using VBA code for reading.


    Some suggestions and code examples please.

    Thanks & Regards,
    Prasad


  2. #2
    Tom Ogilvy
    Guest

    Re: Open CSV file, format data and write output to a text file.

    http://www.cpearson.com/excel/imptext.htm import/export text files

    at Chip Pearson's site should get you started.

    Some References:
    http://web.archive.org/web/200404050...eio/fileio.asp
    File Access with Visual Basic® for Applications

    http://support.microsoft.com/default...b;en-us;151262
    Working with Sequential Access Files

    http://www.applecore99.com/gen/gen029.asp

    --
    Regards,
    Tom Ogilvy


    "BristolBloos" <prasad.vanka@computershare.co.uk> wrote in message
    news:1129642407.501459.191480@g49g2000cwa.googlegroups.com...
    > Hi All,
    >
    > Through my Excel VBA i want to
    > 1. Open a csv file
    > 2. Read each row
    > 3. Select few fields
    > 4. Format them
    > 5. Concatenate them as a single text separated by "#"
    >
    > and
    >
    > 6. Finally write the output into a text file
    >
    >
    > I know the name and location of the input csv file and therefore I
    > don't want the user to open it manually. Rather the file should be
    > opened automatically using VBA code for reading.
    >
    >
    > Some suggestions and code examples please.
    >
    > Thanks & Regards,
    > Prasad
    >




+ 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