Solved

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

Posted on 2013-05-27
2
487 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 45

Accepted Solution

by:
aikimark earned 500 total points
Comment Utility
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
Comment Utility
I resolved it, thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now