I have an issue getting worksheet names from an Excel spreadsheet using OLEDB. The problem is that when I use GetOleDbSchemaTable, the resulting DataTable has more than jus
The first way that comes to my mind is the same way akash88 listed in your link to Using Excel OleDb to get sheet names IN SHEET ORDER link.
You can take akash88's approach and clean it up a little so the code is nicer to read.
var wsList = from s in schemaTable
where s.Field("TABLE_NAME").Contains("$")
select s.Field("TABLE_NAME");