Results 1 to 2 of 2

Thread: Excel .CSV files

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    Cape Town, South Africa
    Posts
    14

    Excel .CSV files

    Hi does anyone know how to import a .CSV file into an .XLS file using VB?
    Bartho Smith
    Email: [email protected]

  2. #2
    Addicted Member reznor's Avatar
    Join Date
    May 2001
    Location
    Netherlands
    Posts
    151
    You can write vb code in an Excel module. You can open an csv file like you would a text file. Use:

    Open FilePath For Input As #1
    Do Until EOF(1)
    Line Input #1, strInput
    DoYourThingWithstrInput()
    Loop

    something like this.
    Hope this helps.
    "Computers are incredibly fast, accurate and stupid. Human beings are incredibly slow, inaccurate and brilliant. Together they are powerful beyond imagination." - Albert Einstein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width