Results 1 to 4 of 4

Thread: Import CSV to Excel with vb.net [2005]

Hybrid View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    394

    Import CSV to Excel with vb.net [2005]

    If I want to import a CSV file into an Excel wooksheet do I have to move the data into a datatable first or can I place the data directly into Excel ?

  2. #2
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: Import CSV to Excel with vb.net [2005]

    You can do it either way, or you can program a macro to do it and then have your app fire the macro.
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    394

    Re: Import CSV to Excel with vb.net [2005]

    thanks

    I was pretty sure that it could be done but I'm having trouble finding examples of moving the file directly to Excel. I want to import the CSV to a worksheet and rename the worksheet. Do you have any links for examples?

  4. #4
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: Import CSV to Excel with vb.net [2005]

    Check out this thread by one of the moderators (RobDog):

    http://www.vbforums.com/showthread.php?t=358585
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

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