How can I import data from Excel into VB Express?

 

Just downloaded VB Express with SQL Server Express....I want to import the current database, which is in Excel spreadsheet format to VB.  Is this possible so I don't have to re-enter the data

 

Pam



Answer this question

How can I import data from Excel into VB Express?

  • TimMulholland

      Jason, 

    I'm sorry to be so dense, but I'm not a programmer and I have limited experience. 

    I created my table and added the column names and types to the table and save it.

    When I go to add the data, I do DATA, SHOW TABLE DATA and paste the excel data.  But it only is copied to the first column. Help and forgive me for my stupidity!

    Thank you.

    Pam

     

     


  • CurtTampa

     

    Are you saying that I have to copy the contents of each cell in the Excel spreadsheet one at a time   Please expand on your answer....thank you very much!

     

    Pam


  • Flavio Roberto

    No problem Pam... Glad to be of assistance...



  • johncharle

    Thank you!  It worked through Access!

     

    Pam


  • msheridan

    I don't know why it didn't work. The only other thing I can think of is if you use MS Access first to create the table then paste the data from Excel to your MS Access table (I know this definately works) then import it into your SQL server.

    I don't really use SQL that much, but it's worth a try!



  • neilchan

    Pam,

    You can select the entire range of your table in excel, Edit> Copy

    Create a new table using Database Explorer in VB 2005 Express, Add your column names then Edit> Paste.



  • calloatti

    Yes, this is possible.

    Create your new table in Microsoft Visual Basic Express Edition Database Explorer, copy and paste the data from your Excel spreadsheet into your new table.

    This should work,



  • How can I import data from Excel into VB Express?