Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preferred method to parse Excel.

Status
Not open for further replies.

GEAK

Instructor
Feb 1, 2001
90
US
I'm not looking for instructions on how to pull data from Excel. I already know two ways to do that. I'd like opinions on which way is better.

Currently I'm using ADODB to create a recordset representing Excel data. It has it's caveats: namely ADO will guess at the data type (defaults to numeric) and treat anything of a different type as Null. For the most part I can survive this limitation (I think).

I also know that I can use the Excel object library to pull data. It'll get rid of the typing problem but it may introduce other problems (not really sure about this). If I write my app using excel 11 will it work properly if the end user only has excel 10 (or earlier)? I'm afraid that using the object library may impose compatibility issues.

Summary, which is worse: Having to lose data in some cells because of ADO limitations? Or possibly not being able to read any cells because of compatibility issues?

Are there actual compatibility issues or am I mixing up excel with every other MS product that has versioning problems?
 
I'd try to read up on using automation and late binding. This will circumvent the library challenges.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top