Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Import Excel spreadsheet into vb.net data table (or whatever)

Posted on 2013-05-27
2
Medium Priority
?
500 Views
Last Modified: 2013-05-28
Hi,

I need a snipped for importing an excel (2013) spreadsheet into a datatable, and I also need to make sure it's closed afterwards so I can edit it.

vb.net (vs2012)

Thanks
~j
0
Comment
Question by:prosit
2 Comments
 
LVL 46

Accepted Solution

by:
aikimark earned 2000 total points
ID: 39201953
Have you used ADO to get data from a database?  If so, getting data from an Excel workbook will be similar.
You can specify a connection string to point to a workbook, just like you would point to an RDBMS (SQL Server, Oracle, DB2, or Access).
0
 
LVL 2

Author Closing Comment

by:prosit
ID: 39202245
I resolved it, thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question