Sign in to follow this  
DarienDaermon

Importing Spreadsheets into Visual Basic .NET

Recommended Posts

This is getting extremely frustrating: I am programming an interface for a pen and paper game I made; a while ago, I put all the character sheets onto a spreadsheet, so I could play it off of the palm. As we have played one game for nigh on 5 years now, the sheets are quite expansive (and I want to have the spreadsheet for use outside of the interface) so I do not want to manually program all the stats, inventory, etc. into the program. The Question: How do you make VB read and write to and from a spreadsheet? Please!! Thanks, DDaermon

Share this post


Link to post
Share on other sites
What kind of spreadhseet? Is it a Microsoft Excel one? If so, I think you can access it through the ODBC interfaces using the "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=C:\MyExcel.xls;DefaultDir=c:\mypath;" connection string (source: www.connectionstrings.com).

Share this post


Link to post
Share on other sites
Thanks! I'll try that... but... uh... how do I use that driver? Sorry: This is seriously my second week with VB. Also, how do you manipulate the cells after you have it accessible?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this